Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

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

Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2004 Apple Computer, Inc.
All rights reserved. | Terms of use | Privacy Notice