Timestamp.fromMicrosecondsSinceEpoch constructor
Timestamp.fromMicrosecondsSinceEpoch(
- int microseconds
Create a Timestamp fromMicrosecondsSinceEpoch
Implementation
factory Timestamp.fromMicrosecondsSinceEpoch(int microseconds) {
final int seconds = microseconds ~/ _kMillion;
final int nanoseconds = (microseconds - seconds * _kMillion) * _kThousand;
return Timestamp(seconds, nanoseconds);
}