Date and Time APIs
The date and time APIs provide support for working with date and time values. Using these APIs, you can do the following tasks:
- Access the current date and time.
- Adjust the current time of your system.
- Determine if a time adjustment is currently in progress.
- Convert date and time values from one format to another format.
- Retrieve information related to time zone descriptions.
The date and time APIs include:
- Adjust Time (QWCADJTM) adjusts the time-of-day clock.
- Convert _MI_Time to Timeval Structure (Qp0zCvtToTimeval()) converts a machine timestamp (or timestamp offset), represented by an _MI_Time data type, to a corresponding timeval structure.
- Convert Date and Time Format (QWCCVTDT) allows you to convert date and time formats from one format to another format.
- Convert Timeval Structure to _MI_Time (Qp0zCvtToMITime()) converts a UNIX-type timestamp (or timestamp offset), represented by a timeval structure, to a corresponding _MI_Time data type.
- Retrieve System Time Information (QWCRTVTM) retrieves the current Coordinated Universal Time and time adjustment information.
- Retrieve Time Zone Description (QWCRTVTZ) retrieves information about one or more time zone descriptions.
- Set System Time (QWCSETTM) sets the Coordinated Universal Time (UTC) for the system.
In addition to the date and time APIs above, the following APIs also work with date and time values:
ILE C/C++ Run-Time Library Functions
Machine Interface Instructions
[ Back to top | APIs by category ]