Code example for Time

Methods: getTime

0
                             : -1; 
    } 
 
    static int compare(Time a, Time b) {
 
        long atime = a.getTime();
        long btime = b.getTime();
 
        if (atime == btime) {
            return 0; 
        } 
 
        return atime > btime ? 1
                             : -1; 
    } 
 
    static int compare(Timestamp a, Timestamp b) {
 
        long atime = a.getTime();
        long btime = b.getTime();