| Package | Description |
|---|---|
| net.snowflake.common.core |
| Modifier and Type | Field and Description |
|---|---|
static SFDate |
SFDate.MAX_VALID_VALUE |
static SFDate |
SFDate.MIN_VALID_VALUE |
| Modifier and Type | Method and Description |
|---|---|
SFDate |
SFDate.addDays(int ndays)
Increment current date by specified number of days
and return a new SFDate object.
|
static SFDate |
SFDate.fromTimestamp(SFTimestamp timestamp)
Utility function generating a new SFDate from a given SFTimestamp.
|
SFDate |
TmExt.getDate()
Get SFDate from this structure
|
SFDate |
SqlFormatScanner.parseDate(String str) |
SFDate |
SqlFormat.parseDate(String str)
Parses Data
|
SFDate |
SqlFormatScanner.parseDate(String str,
int cenBound)
Parse date using this list of formats (returns SFDate)
|
SFDate |
SqlFormat.parseDate(String str,
int cenBound)
Parse date using this format (returns SFDate)
|
| Modifier and Type | Method and Description |
|---|---|
int |
SFDate.compareTo(SFDate other)
Compare if we're smaller than, equal to, or larger than the other SFDate
|
boolean |
SFDate.equals(SFDate other)
Returns if we're equal to the other SFDate
|
static SFTimestamp |
SFTimestamp.fromSFDate(SFDate sfd,
TimeZone tz)
Constructs an SF timestamp from an SF date,
|
String |
SqlFormat.printDate(SFDate d)
Print SfDate value
|
void |
TmExt.setDate(SFDate d)
Set this structure from SFDate
NB: This relies on GeorgianCalendar, which is NOT
ISO-8601 compliant proleptic Georgian calendar
|
| Constructor and Description |
|---|
SFDate(SFDate sfd)
Copy constructor.
|
SFTimestamp(SFDate date)
Constructs an SFTimestamp from SFDate.
|
Copyright © 2020. All rights reserved.