public final 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:
Since milliseconds are the highest resolution, each interval can also be expressed as a total number of milliseconds. This is also the recommended way to represent the interval values in other systems which do not natively support this data type.
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 ]<strong>hh:mm</strong>[:ss[.SSS]]
Where
text - string representing an intervalCopyright © 2018–2021. All rights reserved.