Epoch.fromDateTime constructor

Epoch.fromDateTime(
  1. DateTime dateTime
)

Implementation

factory Epoch.fromDateTime(DateTime dateTime)
{
  return new Epoch(dateTime.millisecondsSinceEpoch);
}