public class IntervalDayToSecond extends AbstractInterval
INTERVAL DAY(x) TO SECONDS(y). It supports
conversions to and from strings and from milliseconds.
In Exasol this data type represents a time difference consisting of the following components:
positive, value| Modifier and Type | Method and Description |
|---|---|
static IntervalDayToSecond |
ofMillis(long value)
Create an
IntervalDayToSecond from a number of milliseconds |
static IntervalDayToSecond |
parse(String text)
Parse an
IntervalDayToSecond from a string |
long |
toMillis()
Get the interval as the total number of milliseconds between two points in time.
|
String |
toString() |
getSign, getSignedValue, parseMatchingGroupToLongpublic long toMillis()
public static IntervalDayToSecond ofMillis(long value)
IntervalDayToSecond from a number of millisecondsvalue - total length of the interval in millisecondspublic static IntervalDayToSecond parse(String text)
IntervalDayToSecond from a string
The accepted format is:
[dddddddd ]hh:mm[:ss[.SSS]]
Where
text - string representing an intervalCopyright © 2018. All rights reserved.