Difference between revisions of "GetCurrentTimeStr"
From UODemo Wiki
(Created page with '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. …') |
|||
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, 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+ Publish 16 and later. |
Return to the [[Command List]]. | Return to the [[Command List]]. |
Revision as of 11:45, 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.