public class TimeValue extends Object
Modifier and Type | Field and Description |
---|---|
static long |
NSEC_PER_MSEC
How many nano-seconds in one milli-second
|
Constructor and Description |
---|
TimeValue(long millis) |
TimeValue(long duration,
TimeUnit timeUnit) |
Modifier and Type | Method and Description |
---|---|
long |
days() |
double |
daysFrac() |
long |
getDays() |
double |
getDaysFrac() |
long |
getHours() |
double |
getHoursFrac() |
long |
getMicros() |
double |
getMicrosFrac() |
long |
getMillis() |
double |
getMillisFrac() |
long |
getMinutes() |
double |
getMinutesFrac() |
long |
getNanos() |
long |
getSeconds() |
double |
getSecondsFrac() |
long |
hours() |
double |
hoursFrac() |
long |
micros() |
double |
microsFrac() |
long |
millis() |
double |
millisFrac() |
long |
minutes() |
double |
minutesFrac() |
long |
nanos() |
long |
seconds() |
double |
secondsFrac() |
static TimeValue |
timeValueHours(long hours) |
static TimeValue |
timeValueMillis(long millis) |
static TimeValue |
timeValueMinutes(long minutes) |
static TimeValue |
timeValueNanos(long nanos) |
static TimeValue |
timeValueSeconds(long seconds) |
String |
toString() |
public static final long NSEC_PER_MSEC
public TimeValue(long millis)
public TimeValue(long duration, TimeUnit timeUnit)
public static TimeValue timeValueNanos(long nanos)
public static TimeValue timeValueMillis(long millis)
public static TimeValue timeValueSeconds(long seconds)
public static TimeValue timeValueMinutes(long minutes)
public static TimeValue timeValueHours(long hours)
public long nanos()
public long getNanos()
public long micros()
public long getMicros()
public long millis()
public long getMillis()
public long seconds()
public long getSeconds()
public long minutes()
public long getMinutes()
public long hours()
public long getHours()
public long days()
public long getDays()
public double microsFrac()
public double getMicrosFrac()
public double millisFrac()
public double getMillisFrac()
public double secondsFrac()
public double getSecondsFrac()
public double minutesFrac()
public double getMinutesFrac()
public double hoursFrac()
public double getHoursFrac()
public double daysFrac()
public double getDaysFrac()
Copyright © 2014–2023. All rights reserved.