Jiffy.parseFromMicrosecondsSinceEpoch constructor
Constructs a Jiffy instance from a microsecondsSinceEpoch
of type
int.
The microsecondsSinceEpoch
represents the number of microseconds since
epoch time, which is January 1, 1970, 00:00:00 UTC
.
final now = DateTime.now();
final jiffy = Jiffy.parseFromMicrosecondsSinceEpoch(now.microsecondsSinceEpoch);
Implementation
factory Jiffy.parseFromMicrosecondsSinceEpoch(int microsecondsSinceEpoch,
{bool isUtc = false}) {
return Jiffy._internal(DateTime.fromMicrosecondsSinceEpoch(
microsecondsSinceEpoch,
isUtc: isUtc));
}