public class TimeAbacusMilliseconds extends Object implements TimeAbacus
Modifier and Type | Field and Description |
---|---|
static TimeAbacusMilliseconds |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
long |
calendarGet(Calendar cal,
long remainder) |
CodegenExpression |
calendarGetCodegen(CodegenExpression cal,
CodegenExpression startRemainder,
CodegenContext context) |
long |
calendarSet(long fromTime,
Calendar cal) |
CodegenExpression |
calendarSetCodegen(CodegenExpression startLong,
CodegenExpression cal,
CodegenContext context) |
long |
deltaForSecondsDouble(double seconds) |
CodegenExpression |
deltaForSecondsDoubleCodegen(CodegenExpressionRef sec,
CodegenContext context) |
long |
deltaForSecondsNumber(Number timeInSeconds) |
long |
getOneSecond() |
Date |
toDate(long ts) |
CodegenExpression |
toDateCodegen(CodegenExpression ts) |
public static final TimeAbacusMilliseconds INSTANCE
public long deltaForSecondsDouble(double seconds)
deltaForSecondsDouble
in interface TimeAbacus
public CodegenExpression deltaForSecondsDoubleCodegen(CodegenExpressionRef sec, CodegenContext context)
deltaForSecondsDoubleCodegen
in interface TimeAbacus
public long deltaForSecondsNumber(Number timeInSeconds)
deltaForSecondsNumber
in interface TimeAbacus
public long calendarSet(long fromTime, Calendar cal)
calendarSet
in interface TimeAbacus
public CodegenExpression calendarSetCodegen(CodegenExpression startLong, CodegenExpression cal, CodegenContext context)
calendarSetCodegen
in interface TimeAbacus
public long calendarGet(Calendar cal, long remainder)
calendarGet
in interface TimeAbacus
public long getOneSecond()
getOneSecond
in interface TimeAbacus
public Date toDate(long ts)
toDate
in interface TimeAbacus
public CodegenExpression toDateCodegen(CodegenExpression ts)
toDateCodegen
in interface TimeAbacus
public CodegenExpression calendarGetCodegen(CodegenExpression cal, CodegenExpression startRemainder, CodegenContext context)
calendarGetCodegen
in interface TimeAbacus