Skip to content

Period.years

Returns the number of seconds in n years (365 days).

Imports

Named
import { Period } from 'ox/tempo'

Examples

import { Period } from 'ox/tempo'
 
const seconds = Period.years(1) // 31536000

Definition

function years(
  n: number,
): number

Source: src/tempo/Period.ts

Parameters

n

  • Type: number

Return Type

number