Time.fromHours constructor

Time.fromHours(
  1. Rational hours
)

Creates a Time representing the specified number of hours.

Implementation

factory Time.fromHours(Rational hours) =>
    Time.fromUnits(TimeUnit.hour, hours);