tibrvMsg_GetCurrentTime()

Function

Declaration

tibrv_status tibrvMsg_GetCurrentTime(
    tibrvMsgDateTime*    dateTime);
tibrv_status tibrvMsg_GetCurrentTimeString(
    char*    local,
    char*    gmt);

Purpose

Get the current time.

Remarks

The first function produces a date-time object; for details, see tibrvMsgDateTime.

The second function produces printable strings.

Both functions are thread-safe.

Parameter

Description

dateTime

The program supplies a location. The function stores the current time in that location.

local

If this argument is non-NULL, then it is the location of a string. The function stores a string representing the current time (in the local time zone) in that location.

If this argument is NULL, then the function leaves it unchanged.

gmt

If this argument is non-NULL, then it is the location of a string. The function uses tibrvMsg_ConvertToString() to produce a string representing the current time (Zulu time), and stores the string in that location. For details, see Converting Dates to Strings.

If this argument is NULL, then the function leaves it unchanged.

See Also

tibrvMsgDateTime