Function parseTimeT

  • Convert a number in time_t format into a JavaScript Date object.

    Parameters

    • source:
          | undefined
          | null
          | string
          | number

      The time in time_t format. In Unix & C it's common to count the number of seconds past the Unix epoch as an integer. As opposed to Java which counts the number of milliseconds past the Unix epoch as an integer, or JavaScript which counts the number of milliseconds past the epoch as a floating point number. We interpret 0 was a way to say no value.

    Returns Date | undefined

    A Date if possible, or undefined on any error.

MMNEPVFCICPMFPCPTTAAATR