TimezonedString extension

on

Methods

toLabeledTzString(bool inUtc, [int? numChars]) String

Available on DateTime, provided by the TimezonedString extension

Converts this date-time to a string in either local or UTC time zone, followed by the timeZoneLabel of that zone in parentheses.
toTzString(bool inUtc, [int? numChars]) String

Available on DateTime, provided by the TimezonedString extension

Converts this date-time to a string in either local or UTC time zone. If numChars is provided, the string will be truncated to that length.