Function getUnixTimestampInSeconds

  • Get a Unix timestamp for a future time

    Parameters

    • seconds: number

      Number of seconds from now

    Returns number

    Unix timestamp (seconds since epoch)

    Example

    // Get timestamp for 1 day from now
    const tomorrow = getUnixTimestampInSeconds(60 * 60 * 24);