ABSTRACT:
This sample code demonstrates how to get the server's local time using two methods and the server's UTC time using one method.
DETAILED DESCRIPTION
This sample code demonstrates how to get the server's local time using two methods and the server's UTC time using one method. The server's local time is the current time in the time zone where the server is located. UTC time is Coordinated Universal Time which is a world time standard. The time() function returns the time in calendar time, which is the time in seconds since January 1, 1970 UTC time. The local time() function converts calendar time to local time, while the ctime() function also converts calendar time to local time and then returns the time in the form of a string.
| xtimkb1.exe | 23.3 K | 2005-04-06 |
--devsup
© 2008 Novell, Inc. All Rights Reserved.