| |
|
| dalma.TimeUnit
TimeUnit | public enum TimeUnit (Code) | | Unit of time.
author: Kohsuke Kawaguchi |
Constructor Summary | |
| TimeUnit(long unitTime) |
Method Summary | |
public Date | fromNow(long time) Gets the
Date by ading the duration to the current time. | public long | toMilli(long time) | public long | toNano(long time) Converts to nanoseconds. |
HOURS | Enum Constant HOURS(Code) | | |
MICROSECONDS | Enum Constant MICROSECONDS(Code) | | |
MILLISECONDS | Enum Constant MILLISECONDS(Code) | | |
MINUTES | Enum Constant MINUTES(Code) | | |
NANOSECONDS | Enum Constant NANOSECONDS(Code) | | |
SECONDS | Enum Constant SECONDS(Code) | | |
WEEKS | Enum Constant WEEKS(Code) | | |
YEARS | Enum Constant YEARS(Code) | | |
TimeUnit | TimeUnit(long unitTime)(Code) | | |
fromNow | public Date fromNow(long time)(Code) | | Gets the
Date by ading the duration to the current time.
|
toMilli | public long toMilli(long time)(Code) | | |
toNano | public long toNano(long time)(Code) | | Converts to nanoseconds.
|
|
|
|