toDateTime method

DateTime toDateTime(
  1. TimeUnit unit, {
  2. bool isUtc = false,
})

Parse timestamp

Implementation

DateTime toDateTime(TimeUnit unit, {bool isUtc = false}) =>
    unit.parseTimestamp(trim(), isUtc: isUtc);