toLabeledTzString method

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

Converts this date-time to a string in either local or UTC time zone, followed by the timeZoneLabel of that zone in parentheses.

Implementation

String toLabeledTzString(bool inUtc, [int? numChars]) {
  return '${toTzString(inUtc, numChars)} (${timeZoneLabel(inUtc)})';
}