Skip to content

Period.hours

Returns the number of seconds in n hours.

Imports

Named
import { Period } from 'ox/tempo'

Examples

import { Period } from 'ox/tempo'
 
const seconds = Period.hours(2) // 7200

Definition

function hours(
  n: number,
): number

Source: src/tempo/Period.ts

Parameters

n

  • Type: number

Return Type

number