toWallClock static method

DateTime toWallClock(
  1. DateTime instant
)

Zeitpunkt → Wiener Wanduhrzeit (naives DateTime).

Implementation

static DateTime toWallClock(DateTime instant) {
  final utc = instant.toUtc();
  final shifted = utc.add(offsetAt(utc));
  return DateTime(shifted.year, shifted.month, shifted.day, shifted.hour,
      shifted.minute, shifted.second, shifted.millisecond, shifted.microsecond);
}