toNative method

  1. @useResult
DateTime toNative()

Converts this to a DateTime in UTC.

The date is always set to Unix epoch (1970 January 1st).

Implementation

@useResult DateTime toNative() => DateTime.utc(1970, 1, 1, _native.hour, _native.minute, _native.second, _native.millisecond, _native.microsecond);