Difference between revisions of "GetCurrentTimeStr"
From UODemo Wiki
m |
|||
Line 3: | Line 3: | ||
This function returns the system time as a string in the format ''"%Y-%m-%d %H:%M"'' using the ''strftime'' C function. | This function returns the system time as a string in the format ''"%Y-%m-%d %H:%M"'' using the ''strftime'' C function. | ||
− | However! The demo server code is bugged here ([http://www.joinuo.com/forums/viewtopic.php?f=32&t=569 forum topic]), and will return a randomized time due to a missing call to the required ''time'' C function! This is fixed in UoDemo+ Publish 16 and later. | + | However! The demo server code is bugged here ([http://www.joinuo.com/forums/viewtopic.php?f=32&t=569 forum topic]), and will return a randomized time due to a missing call to the required ''time'' C function! This is fixed in [[uodemo+|UoDemo+]] Publish 16 and later. |
Return to the [[Command List]]. | Return to the [[Command List]]. |
Latest revision as of 11:46, 12 August 2011
void getCurrentTimeStr(string &ResultString);
This function returns the system time as a string in the format "%Y-%m-%d %H:%M" using the strftime C function.
However! The demo server code is bugged here (forum topic), and will return a randomized time due to a missing call to the required time C function! This is fixed in UoDemo+ Publish 16 and later.
Return to the Command List.