public class Time extends Object
Modifier and Type | Method and Description |
---|---|
static Time |
days(long value) |
protected static long |
daysAsSeconds(long value) |
long |
getNumber() |
TimeUnit |
getTimeUnit() |
static Time |
hours(long value) |
protected static long |
hoursAsSeconds(long value) |
static Time |
millis(long value) |
static Time |
minutes(long value) |
protected static long |
minutesAsSeconds(long value) |
static Time |
seconds(long value) |
Date |
toDate() |
long |
toMillis() |
String |
toString() |
public Time(long number, TimeUnit timeUnit)
public static Time millis(long value)
public static Time seconds(long value)
public static Time minutes(long value)
public static Time hours(long value)
public static Time days(long value)
public long toMillis()
public Date toDate()
public long getNumber()
public TimeUnit getTimeUnit()
protected static long minutesAsSeconds(long value)
protected static long hoursAsSeconds(long value)
protected static long daysAsSeconds(long value)
Apache Camel