NOTE: This Technical Q&A has been
retired. Please see the Technical Q&As
page for current documentation.![]() ![]() |
The Apple Media Tool and Apple Media Tool Programming Environment products have been discontinued. For more information check out: AMT/PE Discontinued. Q: Is there a way to get the system time? There doesn't appear to be a call for this in the Apple Media Tool. A: To get the system time from the host computer's operating system, you need to
access the hardware's time facilities. You can add a new method to the CLOCK.k
file, and create the appropriate interface in the CLOCK.c file. On the
Macintosh, you can use Even better, you can use the ANSII-standard LocalTime function, for both Windows and the Mac. Follow these steps:
|
Developer Documentation | Technical Notes | Development Kits | Sample Code |