(hours: number): DurationCreates a Duration from hours.
Example (Creating durations from hours)
import { Duration } from "effect"
const duration = Duration.hours(2)
console.log(Duration.toMillis(duration)) // 7200000constructors
Source effect/Duration.ts:7211 lines
export const const hours: (hours: number) => DurationCreates a Duration from hours.
Example (Creating durations from hours)
import { Duration } from "effect"
const duration = Duration.hours(2)
console.log(Duration.toMillis(duration)) // 7200000
hours = (hours: numberhours: number): Duration => const make: (
input: number | bigint
) => Duration
make(hours: numberhours * 3_600_000)Referenced by 1 symbols