Time.fromMilliseconds constructor

Time.fromMilliseconds(
  1. int milliseconds
)

Creates a Time from the given milliseconds. Behaviour is undefined if milliseconds exceeds the total milliseconds in a day.

Implementation

factory Time.fromMilliseconds(int milliseconds) => Time.fromMicroseconds(milliseconds * 1000);