Open topic with navigation

TIBCO Rendezvous® 8.8.0

# 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

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO Rendezvous®

Copyright © 1997-2025. Cloud Software Group, Inc. All Rights Reserved.