Open topic with navigation

TIBCO Rendezvous® 8.7.0

# TibrvMsg::getCurrentTime()

Method

## Declaration

    static TibrvStatus getCurrentTime(
        TibrvMsgDateTime&    dateTime);

## Purpose

Get the current date and time.

## Remarks

This static method uses an operating system call to get the current time.

Programs can call this method without reference to any message object.

Parameter | Description
`dateTime` | The program supplies a variable; the method stores the current time in that variable.

## Example

    TibrvMsgDateTime myTime;
    ...
    if (TibrvMsg::getCurrentTime(myTime) == TIBRV_OK)
       ...

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-2023. Cloud Software Group, Inc. All Rights Reserved.