Function msectozulu

  • Unix origin milliseconds GeneralizedTime string

    Parameters

    • n: number

      milliseconds from Unix origin time (i.e. Jan 1, 1970 0:00:00 UTC)

    Returns string

    GeneralizedTime string (ex. 20170412235959.384Z)

    Description

    This function converts from milliseconds of Unix origin time (ex. 1199145599000 for 31 Dec 2007 23:59:59 GMT) to GeneralizedTime string (i.e. YYYYMMDDHHmmSSZ). The result string may have a fraction of second.

    Example

    msectozulu(1199145599000) -> "20071231235959Z"       #Mon, 31 Dec 2007 23:59:59     GMT
    msectozulu(1199145599100) -> "20071231235959.1Z" #Mon, 31 Dec 2007 23:59:59.1 GMT
    msectozulu(1199145599123) -> "20071231235959.123Z" #Mon, 31 Dec 2007 23:59:59.123 GMT