CborDateTimeString constructor

CborDateTimeString(
  1. DateTime value, {
  2. Duration? timeZoneOffset,
  3. List<int> tags,
})

Create a date time string.

If timeZoneOffset is not provided, the timezone for value is used.

This will ommit second fraction if zero, and trim it depending on the resolution.

Implementation

factory CborDateTimeString(
  DateTime value, {
  Duration? timeZoneOffset,
  List<int> tags,
}) = _CborDateTimeStringImpl;