TimeZoneSettings class
A class to configure time zone settings for decoding timestamps and dates.
Constructors
- TimeZoneSettings(String value, {bool forceDecodeTimestamptzAsUTC = true, bool forceDecodeTimestampAsUTC = true, bool forceDecodeDateAsUTC = true})
- Creates a new instance of TimeZoneSettings.
Properties
- forceDecodeDateAsUTC ↔ bool
-
If true, decodes the date as UTC.
If false, decodes the date as local datetime.
getter/setter pair
- forceDecodeTimestampAsUTC ↔ bool
-
If true, decodes the timestamp without timezone (timestamp) as UTC.
If false, decodes the timestamp without timezone as local datetime.
getter/setter pair
- forceDecodeTimestamptzAsUTC ↔ bool
-
If true, decodes the timestamp with timezone (timestamptz) as UTC.
If false, decodes the timestamp with timezone using the timezone defined in the connection.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value ↔ String
-
The default time zone value.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited