Function parseUnixDate

  • Converts a string to a Date.

    Parameters

    • s: string

      A string representing seconds since 1 January 1970 UTC.

    Returns Date | undefined

    A Date representation of s if successful; otherwise, undefined.