All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jn.langx.util.timing.TimeReverses Maven / Gradle / Ivy

Go to download

Java lang extensions for java6+, a supplement to , replacement of a Guava, commons-lang. Core utilities, Collection utilities, IO utilities, Cache, Configuration library ...

There is a newer version: 4.8.2
Show newest version
package com.jn.langx.util.timing;

public class TimeReverses {
    public static long reverseTimeMillis(long time) {
        return Long.MAX_VALUE - time;
    }

    public static long reverseCurrentTimeMillis() {
        return reverseTimeMillis(System.currentTimeMillis());
    }

    public static long recoveryTimeMillis(long reversedTime) {
        return reverseTimeMillis(reversedTime);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy