| Package | Description |
|---|---|
| net.snowflake.common.core | |
| net.snowflake.common.util |
| Modifier and Type | Field and Description |
|---|---|
static SFTimestamp |
SFTimestamp.MAX_VALID_VALUE |
static SFTimestamp |
SFTimestamp.MIN_VALID_VALUE |
| Modifier and Type | Method and Description |
|---|---|
SFTimestamp |
SFTimestamp.adjustScale(int scale)
Adjusts fractional second accuracy if necessary.
|
SFTimestamp |
SFTimestamp.changeTimeZone(TimeZone timeZone)
Returns a new SFTimestamp object, with specified timeZone set in it.
|
static SFTimestamp |
SFTimestamp.fromBinary(BigDecimal binary,
int scale,
TimeZone tz)
Constructs an SFTimestamp from a binary representation
|
static SFTimestamp |
SFTimestamp.fromDate(Date date,
int nanos,
TimeZone tz)
Constructs an SF timestamp from a Date and a number of nanoseconds.
|
static SFTimestamp |
SFTimestamp.fromMilliseconds(long ms,
TimeZone tz)
Constructs an SF timestamp from a given number of UTC milliseconds
and an originating timezone.
|
static SFTimestamp |
SFTimestamp.fromNanoseconds(BigDecimal ns)
Constructs an SF timestamp from a given number of UTC nanoseconds,
using the GMT timezone.
|
static SFTimestamp |
SFTimestamp.fromNanoseconds(BigDecimal ns,
TimeZone tz)
Constructs an SF timestamp from a given number of UTC nanoseconds,
using the specified timezone
|
static SFTimestamp |
SFTimestamp.fromNanoseconds(long ns,
TimeZone tz)
Constructs an SF timestamp from a given number of UTC nanoseconds
and an originating timezone.
|
static SFTimestamp |
SFTimestamp.fromSFDate(SFDate sfd,
TimeZone tz)
Constructs an SF timestamp from an SF date,
|
SFTimestamp |
TmExt.getTimestamp(TimeZone tz)
Get timestamp as SFTimestamp
|
SFTimestamp |
SFTimestamp.moveToTimeZone(TimeZone newTimeZone)
Moves the timestamp to another time zone without changing its displayed value.
|
SFTimestamp |
SFTimestamp.moveToTimeZone(TimeZone newTimeZone,
boolean cCompatibility)
Moves the timestamp to another time zone without changing its displayed value.
|
SFTimestamp |
SnowflakeDateTimeFormat.parse(String stringToParse) |
SFTimestamp |
SnowflakeDateTimeFormat.parse(String stringToParse,
TimeZone timeZone,
int centuryBoundary,
boolean ignoreTimezone) |
SFTimestamp |
SnowflakeDateTimeFormat.parse(String stringToParse,
TimeZone timeZone,
int centuryBoundary,
int formatType,
boolean ignoreTimezone,
SnowflakeDateTimeFormat.ParserGSInteractions gsInteractions)
Parses a string into an SFTimestamp.
|
SFTimestamp |
SqlFormatScanner.parseTimestamp(String str,
TimeZone tz) |
SFTimestamp |
SqlFormat.parseTimestamp(String str,
TimeZone tz)
Parses Timestamp string
|
SFTimestamp |
SqlFormatScanner.parseTimestamp(String str,
TimeZone tz,
int cenBound)
Parse timestamp using this format (returns SFTimestamp)
|
SFTimestamp |
SqlFormat.parseTimestamp(String str,
TimeZone tz,
int cenBound)
Parse timestamp using this format (returns SFTimestamp)
|
| Modifier and Type | Method and Description |
|---|---|
int |
SFTimestamp.compareTo(SFTimestamp other)
Compares with other SFTimestamp
|
boolean |
SFTimestamp.equals(SFTimestamp other)
Checks if equals with other SFTimestamp
|
static SFTime |
SFTime.fromTimestamp(SFTimestamp ts)
Constructs an SFTime from an SFTimestamp.
|
static SFDate |
SFDate.fromTimestamp(SFTimestamp timestamp)
Utility function generating a new SFDate from a given SFTimestamp.
|
String |
SqlFormat.printTimestamp(SFTimestamp ts,
int scale)
Print SfTimestamp value with scale
|
String |
SqlFormat.printTimestamp(SFTimestamp ts,
int scale,
TimeZone tz)
Print SfTimestamp value with scale
|
void |
TmExt.setTimestamp(SFTimestamp ts,
int scale,
TimeZone tz)
Set this structure from SFTimestamp
NB: This relies on GeorgianCalendar, which is NOT
ISO-8601 compliant proleptic Georgian calendar
|
| Constructor and Description |
|---|
SFTimestamp(SFTimestamp sft)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static SFTimestamp |
TimeUtil.getSFTimestamp(String timestampStr,
int scale,
TimeUtil.TimestampType internalColumnType,
long resultVersion,
TimeZone sessionTZ)
Convert a timestamp internal value (scaled number of seconds + fractional
seconds) into a SFTimestamp.
|
static SFTimestamp |
TimeUtil.getSFTimestamp(String timestampStr,
TimeUtil.TimestampUnit unit,
int scale,
TimeUtil.TimestampType internalColumnType,
long resultVersion,
TimeZone sessionTZ)
Convert a timestamp internal value (scaled number of seconds + fractional
seconds or nanoseconds) into a SFTimestamp.
|
Copyright © 2020. All rights reserved.