TimeZoneSettings constructor
TimeZoneSettings(
- String value, {
- bool forceDecodeTimestamptzAsUTC = true,
- bool forceDecodeTimestampAsUTC = true,
- bool forceDecodeDateAsUTC = true,
- TimeZoneDatabaseVariant databaseVariant = TimeZoneDatabaseVariant.full,
Creates a new instance of TimeZoneSettings.
value is the name of the time zone location.
The optional named parameters:
forceDecodeTimestamptzAsUTC: if true, decodes timestamps with timezone (timestamptz) as UTC. If false, decodes them using the timezone defined in the connection.forceDecodeTimestampAsUTC: if true, decodes timestamps without timezone (timestamp) as UTC. If false, decodes them as local datetime.forceDecodeDateAsUTC: if true, decodes dates as UTC. If false, decodes them as local datetime.databaseVariant: the time zone database used for timestamptz values (see TimeZoneDatabaseVariant); defaults to the full database.
Implementation
TimeZoneSettings(
this.value, {
this.forceDecodeTimestamptzAsUTC = true,
this.forceDecodeTimestampAsUTC = true,
this.forceDecodeDateAsUTC = true,
this.databaseVariant = TimeZoneDatabaseVariant.full,
});