Skip to content

Period.months

Returns the number of seconds in n months (30 days).

Imports

Named
import { Period } from 'ox/tempo'

Examples

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

Definition

function months(
  n: number,
): number

Source: src/tempo/Period.ts

Parameters

n

  • Type: number

Return Type

number