Class DateOperators.Timezone

java.lang.Object
org.springframework.data.mongodb.core.aggregation.DateOperators.Timezone
Enclosing class:
DateOperators

public static class DateOperators.Timezone extends Object
Timezone represents a MongoDB timezone abstraction which can be represented with a timezone ID or offset as a 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"
NOTE: Support for timezones in aggregations Requires MongoDB 3.6 or later.
Since:
2.1
Author:
Christoph Strobl, Mark Paluch