| java.lang.Object org.cougaar.logistics.plugin.inventory.TimeUtils
TimeUtils | public class TimeUtils (Code) | | Provides convenience methods.
|
HOUR_PER_DAY | final public static int HOUR_PER_DAY(Code) | | |
MSEC_PER_DAY | final public static long MSEC_PER_DAY(Code) | | |
MSEC_PER_HOUR | final public static long MSEC_PER_HOUR(Code) | | |
MSEC_PER_MIN | final public static long MSEC_PER_MIN(Code) | | |
MSEC_PER_WEEK | final public static long MSEC_PER_WEEK(Code) | | number of msec per day
|
SEC_PER_DAY | final public static long SEC_PER_DAY(Code) | | |
SEC_PER_HOUR | final public static long SEC_PER_HOUR(Code) | | |
addNDays | public static long addNDays(long time, int n_days)(Code) | | Add N days converts a time (long) into an int
representing the number of days and then adds n_days
therefore the resulting long will always be on the midnight boundary
|
addNDaysTime | public static long addNDaysTime(long time, int n_days)(Code) | | |
getDaysBetween | public static int getDaysBetween(long today, long tomorrow)(Code) | | |
msecDateString | public static String msecDateString(long time)(Code) | | |
pushToEndOfDay | public long pushToEndOfDay(long time)(Code) | | |
pushToEndOfDay | public long pushToEndOfDay(Calendar calendar, long time)(Code) | | |
subtractNDays | public static long subtractNDays(long time, int n_days)(Code) | | |
|
|