public static class DateOperators.Timezone extends Object
String. Also accepts a AggregationExpression or Field that resolves to a String of
either Olson Timezone Identifier or a UTC Offset.| Format | Example |
|---|---|
| Olson Timezone Identifier | "America/New_York" "Europe/London" "GMT" |
| UTC Offset | +/-[hh]:[mm], e.g. "+04:45" -[hh][mm], e.g. "-0530" +/-[hh], e.g. "+03" |
| Modifier and Type | Method and Description |
|---|---|
static DateOperators.Timezone |
fromOffset(TimeZone timeZone)
Create a
DateOperators.Timezone for the given TimeZone rendering the offset as UTC offset. |
static DateOperators.Timezone |
fromOffset(ZoneOffset offset)
Create a
DateOperators.Timezone for the given ZoneOffset rendering the offset as UTC offset. |
static DateOperators.Timezone |
fromZone(TimeZone timeZone)
Create a
DateOperators.Timezone for the given TimeZone rendering the offset as UTC offset. |
static DateOperators.Timezone |
fromZone(ZoneId zoneId)
Create a
DateOperators.Timezone for the given ZoneId rendering the offset as UTC offset. |
static DateOperators.Timezone |
none()
Return an empty
DateOperators.Timezone. |
static DateOperators.Timezone |
ofExpression(AggregationExpression expression)
Create a
DateOperators.Timezone for the AggregationExpression resulting in the Olson Timezone Identifier or UTC
Offset. |
static DateOperators.Timezone |
ofField(String fieldReference)
Create a
DateOperators.Timezone for the Field reference holding the Olson Timezone Identifier or UTC Offset. |
static DateOperators.Timezone |
valueOf(Object value)
Create a
DateOperators.Timezone for the given value which must be a valid expression that resolves to a String
representing an Olson Timezone Identifier or UTC Offset. |
public static DateOperators.Timezone none()
DateOperators.Timezone.public static DateOperators.Timezone valueOf(Object value)
DateOperators.Timezone for the given value which must be a valid expression that resolves to a String
representing an Olson Timezone Identifier or UTC Offset.value - the plain timezone String, a Field holding the timezone or an
AggregationExpression resulting in the timezone.DateOperators.Timezone.public static DateOperators.Timezone fromOffset(TimeZone timeZone)
DateOperators.Timezone for the given TimeZone rendering the offset as UTC offset.timeZone - TimeZone rendering the offset as UTC offset.DateOperators.Timezone.public static DateOperators.Timezone fromOffset(ZoneOffset offset)
DateOperators.Timezone for the given ZoneOffset rendering the offset as UTC offset.offset - ZoneOffset rendering the offset as UTC offset.DateOperators.Timezone.public static DateOperators.Timezone fromZone(TimeZone timeZone)
DateOperators.Timezone for the given TimeZone rendering the offset as UTC offset.timeZone - DateOperators.Timezone rendering the offset as zone identifier.DateOperators.Timezone.public static DateOperators.Timezone fromZone(ZoneId zoneId)
DateOperators.Timezone for the given ZoneId rendering the offset as UTC offset.zoneId - ZoneId rendering the offset as zone identifier.DateOperators.Timezone.public static DateOperators.Timezone ofField(String fieldReference)
DateOperators.Timezone for the Field reference holding the Olson Timezone Identifier or UTC Offset.fieldReference - the Field holding the timezone.DateOperators.Timezone.public static DateOperators.Timezone ofExpression(AggregationExpression expression)
DateOperators.Timezone for the AggregationExpression resulting in the Olson Timezone Identifier or UTC
Offset.expression - the AggregationExpression resulting in the timezone.DateOperators.Timezone.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.