Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Operating System Utilities /
Chapter 4 - Date, Time, and Measurement Utilities / Date, Time, and Measurement Utilities Reference
Routines / Getting the Current Date and Time


GetDateTime

You can use the GetDateTime procedure to obtain the current date-time information, expressed as the number of seconds elapsed since midnight, January 1, 1904.

PROCEDURE GetDateTime (VAR secs: LongInt);
secs
On return, the number of seconds elapsed since midnight, January 1, 1904.
DESCRIPTION
The GetDateTime procedure returns in the secs parameter the number of seconds elapsed since midnight, January 1, 1904.

The low-memory copy of the date and time information (expressed as the number of seconds elapsed since midnight, January 1, 1904) is also accessible through the global variable Time.

SEE ALSO
For an example that uses the GetDateTime procedure to get the current date and time, see Listing 4-1 on page 4-10.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996