| Package | Description |
|---|---|
| net.snowflake.common.core | |
| net.snowflake.common.util |
| Modifier and Type | Field and Description |
|---|---|
static SFTime |
SFTime.MAX_VALID_VALUE |
static SFTime |
SFTime.MIN_VALID_VALUE |
| Modifier and Type | Method and Description |
|---|---|
SFTime |
SFTime.addComponent(int component,
long increment)
Create an SFTime by adding hours, minutes, seconds, or milliseconds.
|
SFTime |
SFTime.adjustScale(int scale)
Create an SFTime with an adjusted scale.
|
static SFTime |
SFTime.fromFractionalSeconds(long value,
int scale)
Constructs an SFTime from fractional seconds at a particular scale.
|
static SFTime |
SFTime.fromNanoseconds(long nanos)
Constructs an SFTime given nanoseconds since midnight.
|
static SFTime |
SFTime.fromTimestamp(SFTimestamp ts)
Constructs an SFTime from an SFTimestamp.
|
SFTime |
TmExt.getTime()
Get time of day as SFTime
|
SFTime |
SqlFormatScanner.parseTime(String str)
Parse time of day using this format (returns SFTime)
|
SFTime |
SqlFormat.parseTime(String str)
Parse time of day using this format (returns SFTime)
|
| Modifier and Type | Method and Description |
|---|---|
int |
SFTime.compareTo(SFTime other)
Compares with other SFTime
|
String |
SnowflakeDateTimeFormat.format(SFTime sfTime,
int scale) |
String |
SqlFormat.printTime(SFTime t,
int scale)
Print SfTime value with scale
|
void |
TmExt.setTime(SFTime t,
int scale)
Set this structure from SFTime
|
| Modifier and Type | Method and Description |
|---|---|
static SFTime |
TimeUtil.getSFTime(String obj,
int scale)
Convert a time internal value (scaled number of seconds + fractional
seconds) into an SFTime.
|
Copyright © 2020. All rights reserved.