fromDateTime static method
Creates a BulkTimestamp from a DateTime instance.
Implementation
// ignore: prefer_constructors_over_static_methods
static BulkTimestamp fromDateTime(DateTime dt) {
return BulkTimestamp(
year: dt.year,
month: dt.month,
day: dt.day,
hour: dt.hour,
minute: dt.minute,
second: dt.second,
fraction: dt.millisecond * 1000000 + dt.microsecond,
);
}