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)
   ...