This shows you the differences between two versions of the page.
mg_notes:apple_ii_atlk:time [2017/09/30 03:06] M.G. created |
mg_notes:apple_ii_atlk:time [2017/11/04 02:38] M.G. |
||
---|---|---|---|
Line 10: | Line 10: | ||
The Workstation Card firmware provides a system call to set a relative time zone offset from the AFP server. However, none of the Workstation Card software allows setting this. | The Workstation Card firmware provides a system call to set a relative time zone offset from the AFP server. However, none of the Workstation Card software allows setting this. | ||
+ | |||
+ | ===== AppleTalk ConvertTime Call Behavior ===== | ||
+ | |||
+ | The AppleTalk ConvertTime Call (call $34) remembers the seconds when converting from AFP format to ProDOS (which does not have a field for seconds). A subsequent call to convert from ProDOS to AFP format will use the seconds to generate the AFP time. If you thought, as I did, that you might try to get the number of seconds by doing a convert, then a convert back, and subtracting... well you have to have an intervening conversion that is exactly 0 seconds into the minute. | ||
+ | |||
+ | Note that Jan 1, 2000 12:00 AM is 0x00000000 in AFP time, so converting that to P8 time makes for a nice easy way to do it. | ||