www.beck-ipc.com

GMLib - Clock


Clock

Functions for the internal clock of the GM0x

  • gmReadTime
  • gmWriteTime


  • int gmReadTime(char * timeDate)

    This function reads the G24-L current date and time.

    Parameters

    timeDate

    Output parameter: array of char, must have a length of 32 Format:
        yy/MM/dd,hh:mm:ss±zz          or
        yy/MM/dd,hh:mm:ss

        yy - 2-digit year [2000-2069]
        MM - 2-digit month [01-12]
        dd - 2-digit day of month [00-31]
        hh - 2-digit hour [00-23]
        mm - 2-digit minute [00-59]
        ss - 2-digit seconds [00-59]
        zz - (opt.) time zone offset from GMT, in quarter-hours [-47...+48]. If this value is not specified, the time zone offset will be 0.

    The initial date and time returned by this function may be invalid, its the users responsibility to set date and time with gmWriteTime.

    Return Value

    Return values are described here: Return values


    Top
    Index page


    int gmWriteTime(char * timeDate)

    This function sets the G24-L current date and time.

    Parameters

    timeDate

    Input parameter: array of char, must have a length of 32 Format:
        yy/MM/dd,hh:mm:ss±zz         or
        yy/MM/dd,hh:mm:ss

        yy - 2-digit year [2000-2069]
        MM - 2-digit month [01-12]
        dd - 2-digit day of month [00-31]
        hh - 2-digit hour [00-23]
        mm - 2-digit minute [00-59]
        ss - 2-digit seconds [00-59]
        zz - (opt.) time zone offset from GMT, in quarter-hours [-47...+48]. If this value is not specified, the time zone offset will be 0.

    Return Value

    Return values are described here: Return values


    Top
    Index page


    End of document