Timetoken.fromDateTime constructor
- DateTime dateTime
Creates a Timetoken from DateTime.
Beware, as the maximum granularity of the timestamp obtained this way is a microsecond.
Implementation
factory Timetoken.fromDateTime(DateTime dateTime) {
return Timetoken(BigInt.from(dateTime.microsecondsSinceEpoch * 10));
}