F$STime
From NitrOS-9
Set Time | Sets the system time and date |
OS9 F$STime 103F 16 |
Entry Conditions
X relative address of the time packet
Error Output
CC carry set on error
B error code (if any)
Additional Information
- Set Time sets the current system date and time and starts the system real-time clock. The date and time are passed in a time packet as follows:
Relative Address | Value |
0 | year |
1 | month |
2 | day |
3 | hours |
4 | minutes |
5 | seconds |
Then, the call makes a link system call to find the clock. If the link is successful, NitrOS-9 calls the clock initialization. The clock initialization:
- Sets up hardware dependent functions
- Sets up the F$Time system call via F$SSVc
krnp2 + Clock