public abstract class SFInstant extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DAY_OF_WEEK_ISO |
protected static TimeZone |
GMT |
protected static int[] |
POWERS_OF_TEN |
static int |
WEEK_ISO |
static int |
YEAR_OF_WEEK |
static int |
YEAR_OF_WEEK_ISO |
| Constructor and Description |
|---|
SFInstant() |
| Modifier and Type | Method and Description |
|---|---|
int |
extract(int field)
Extract a particular component of a date.
|
abstract int |
extract(int field,
Integer optWeekStart,
Integer optWoyPolicy) |
protected int |
extract(int field,
TimeZone tz,
long time,
Integer optWeekStart,
Integer optWoyPolicy)
Generic function children use to implement public extract.
|
public static final int DAY_OF_WEEK_ISO
public static final int WEEK_ISO
public static final int YEAR_OF_WEEK
public static final int YEAR_OF_WEEK_ISO
protected static final TimeZone GMT
protected static final int[] POWERS_OF_TEN
public int extract(int field)
field - field id as specified in the Calendar class.protected int extract(int field,
TimeZone tz,
long time,
Integer optWeekStart,
Integer optWoyPolicy)
field - Field id as specified in the Calendar class. We also
support additional components defined in SFInstanttz - TimeZone to usetime - Moment in time to extract fromoptWeekStart - Optional WEEK_START valueoptWoyPolicy - Optional WEEK_OF_YEAR_POLICY valueCopyright © 2020. All rights reserved.