• Returns a time object (or a converted equivalent if a format is provided) converted from milliseconds. Reference: https://gist.github.com/flangofas/714f401b63a1c3d84aaa

    Returns

    TimeObject or the converted equivalent if a format is provided.

    Parameters

    • milliseconds: number

      The milliseconds to convert.

    • format: TimeFormats

      The format to convert to. Accepts 's' for seconds, 'm' for minutes, 'h' for hours, 'd' for days.

    Returns number

  • Parameters

    • milliseconds: number

    Returns TimeObject