public enum JFTimeZone extends java.lang.Enum<JFTimeZone>
When calculating DataType.TIME_PERIOD_AGGREGATION candles, this time zone is used to shift two hour periods or larger (larger means periods with unit Unit.Hour (if numOfUnits ≥ 2) or larger) candles according to time zone offset.
Example:
If one uses time zone EET (standard offset +2 UTC, daylight offset +3 UTC), then when time in this time zone
is 00:00, the GMT at that time is 22:00 or 21:00 (depends on winter/summer). So in this case, all Period.DAILY or larger candles will start at 22:00 or 21:00.
When calculating price aggregation bars or tick bars ( DataType.TICK_BAR, DataType.PRICE_RANGE_AGGREGATION, DataType.POINT_AND_FIGURE, DataType.RENKO),
this time zone is used to shift the base period start time.
Base period works as a starting point from which to calculate bars.
Example:
If one uses time zone EET (standard offset +2 UTC, daylight offset +3 UTC), then when time in this time zone is 00:00,
the UTC at that time is 22:00 or 21:00 (depends on winter/summer). In this case all
price aggregation or tick bars will be calculated from Sunday 22:00 or 21:00.
Enum Constant and Description |
---|
ADT |
AEDT |
AEST |
AKST |
ART |
AST |
AZOT |
AZT |
BRT |
CAT |
CDT |
CET |
CST |
CTT |
EAT |
EDT |
EET |
EGT |
EST |
FNT |
GAMT |
HAST |
HST |
IST |
JST |
KGT |
KRAT |
LINT |
MDT |
MHT |
MIT |
MSK |
MST |
NZ |
OMST |
PACIFIC12 |
PAST |
PHOT |
PST |
SST |
UTC |
VLAT |
WAT |
WET |
YEKT |
Modifier and Type | Method and Description |
---|---|
static JFTimeZone |
getByJavaName(java.lang.String tzJavaName) |
long |
getDaylightOffset() |
java.lang.String |
getName() |
long |
getReversedDaylightOffset() |
long |
getReversedStandardOffset() |
long |
getStandardOffset() |
java.util.TimeZone |
getTimeZone() |
java.lang.String |
getTzJavaName() |
static JFTimeZone |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JFTimeZone[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JFTimeZone LINT
public static final JFTimeZone PHOT
public static final JFTimeZone MIT
public static final JFTimeZone MHT
public static final JFTimeZone NZ
public static final JFTimeZone VLAT
public static final JFTimeZone AEST
public static final JFTimeZone AEDT
public static final JFTimeZone JST
public static final JFTimeZone CTT
public static final JFTimeZone KRAT
public static final JFTimeZone OMST
public static final JFTimeZone KGT
public static final JFTimeZone IST
public static final JFTimeZone YEKT
public static final JFTimeZone AZT
public static final JFTimeZone MSK
public static final JFTimeZone EAT
public static final JFTimeZone EET
public static final JFTimeZone CAT
public static final JFTimeZone CET
public static final JFTimeZone WAT
public static final JFTimeZone WET
public static final JFTimeZone UTC
public static final JFTimeZone EGT
public static final JFTimeZone AZOT
public static final JFTimeZone FNT
public static final JFTimeZone ART
public static final JFTimeZone BRT
public static final JFTimeZone AST
public static final JFTimeZone ADT
public static final JFTimeZone EDT
public static final JFTimeZone EST
public static final JFTimeZone CDT
public static final JFTimeZone CST
public static final JFTimeZone MDT
public static final JFTimeZone MST
public static final JFTimeZone PST
public static final JFTimeZone PAST
public static final JFTimeZone AKST
public static final JFTimeZone GAMT
public static final JFTimeZone HST
public static final JFTimeZone HAST
public static final JFTimeZone SST
public static final JFTimeZone PACIFIC12
public static JFTimeZone[] values()
for (JFTimeZone c : JFTimeZone.values()) System.out.println(c);
public static JFTimeZone valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static JFTimeZone getByJavaName(java.lang.String tzJavaName)
public long getReversedStandardOffset()
public long getReversedDaylightOffset()
public long getStandardOffset()
public long getDaylightOffset()
public java.lang.String getTzJavaName()
public java.util.TimeZone getTimeZone()
public java.lang.String getName()
Copyright © 2024. All rights reserved.