fromDateTime static method
Creates a BulkTimestamp from a DateTime instance.
Implementation
// Reason: fromDateTime is the established bulk wire helper;
// AUDIT-DART-2026-06, remove when BulkTimestamp gains a constructor alias.
// 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,
);
}