TibrvMsg::getCurrentTime()
Method
Declaration
static TibrvStatusgetCurrentTime
(
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 |
|
The program supplies a variable; the method stores the current time in that variable. |
Example
TibrvMsgDateTime myTime;
...
if (TibrvMsg::getCurrentTime(myTime) == TIBRV_OK)
...