Offset.fromMicroseconds constructor

  1. @Possible({RangeError})
Offset.fromMicroseconds(
  1. int microseconds
)

Creates an Offset from the total microseconds, truncated to the nearest second.

Contract

Throws a RangeError if microseconds is outside the valid range.

Example

Offset.fromMicroseconds(28800000000); // +08:00

Implementation

@Possible({RangeError})
factory Offset.fromMicroseconds(int microseconds) => _Offset.fromMicroseconds(microseconds);