inFixedZone property
ZonedDateTime
inFixedZone
Returns this value as a ZonedDateTime.
This method returns a ZonedDateTime with the same local date and time as this value, using a fixed time zone with the same offset as the offset for this value.
Note that because the resulting ZonedDateTime
has a fixed time zone, it is generally not useful to
use this result for arithmetic operations, as the zone will not adjust to account for daylight savings.
Returns: A zoned date/time with the same local time and a fixed time zone using the offset from this value.
Implementation
ZonedDateTime get inFixedZone => IZonedDateTime.trusted(this, DateTimeZone.forOffset(offset));