Java Second calculateSeconds(long duration)

Here you can find the source of calculateSeconds(long duration)

Description

calculate Seconds

License

Open Source License

Declaration

private static int calculateSeconds(long duration) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    private static int calculateSeconds(long duration) {
        //not perfect but don't care
        return (int) duration / 1000;
    }/*  www .ja va  2s  .c o  m*/
}

Related

  1. advanceCurrentTimeSeconds()
  2. appendSeconds(StringBuilder time, long seconds)
  3. appendSecondsToEncodeOutput(StringBuilder sb, int sec, int fsec, int precision, boolean fillzeros)
  4. asStringInSeconds(long duration)
  5. bytesPerSecond(long totalByteCount, long elapsed)
  6. countSecond(Long time)
  7. currentSecondsPlus(final long seconds)
  8. dateArrayFromSeconds(int inSeconds)
  9. dateDiffToSeconds(final String diff)