Java Time Convert to timeToTimestamp(long currentTimeMsecs)

Here you can find the source of timeToTimestamp(long currentTimeMsecs)

Description

time To Timestamp

License

Open Source License

Declaration

public static int timeToTimestamp(long currentTimeMsecs) 

Method Source Code

//package com.java2s;

public class Main {
    public static int timeToTimestamp(long currentTimeMsecs) {
        int time = (int) (currentTimeMsecs >> 8); // divide by 256, to quarter-seconds
        if (time < 0) {
            time &= 0x7FFFFFFF;/*w ww  .j ava 2 s  .c om*/
        }
        return time;
    }
}

Related

  1. timeToLong(String inputStr)
  2. timeToMs(int day, int hour, int min, int sec)
  3. timeToRad(int time)
  4. timeToTick(float time, float speed)
  5. timeToTicks(Long time)