• Returns a value that represents w weeks. Can also be combined with the other time functions in this module. For example:

    weeks(2) + days(3) // Represents: "2 weeks and 3 days"
    

    Parameters

    • w: number

      how weeks hours to get

    Returns number

    Remarks

    this function does not care in any way about leap seconds and any other time adjustments. This means that when you define an auth descriptor with a rule that makes it expire after 1 week, it will expire after exactly 24 * 7 hours, even if there has been a leap second during that week, which means it will be off by a second.