<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="Copyright" content="Copyright (c) 2006 by IBM Corporation"> <title>Date and Time APIs</title> <!-- Begin Header Records ========================================== --> <!-- All rights reserved. Licensed Materials Property of IBM --> <!-- US Government Users Restricted Rights --> <!-- Use, duplication or disclosure restricted by --> <!-- GSA ADP Schedule Contract with IBM Corp. --> <!-- Change History: --> <!-- YYMMDD USERID Change description --> <!-- 030131 JETAYLOR new for V5R3 --> <!-- 030918 JETAYLOR replaced API and/or Exit listings with --> <!-- pagegenerator output from javascript array --> <!-- 031030 JETAYLOR replaced API and/or Exit listings with --> <!-- pagegenerator output from javascript array --> <!-- 031106 JETAYLOR replaced API and/or Exit listings with --> <!-- pagegenerator output from javascript array --> <!-- End Header Records --> <link rel="stylesheet" type="text/css" href="../rzahg/ic.css"> </head> <body> <script language="Javascript" src="../rzahg/synch.js" type="text/javascript"> </script> <a name="Top_Of_Page"></a> <h2>Date and Time APIs</h2> <p>The Date and Time APIs provide support for working with date and time values. Using these APIs, you can do the following:</p> <ul> <li>Access the current date and time</li> <li>Adjust the current time of your system</li> <li>Determine if a time adjustment is currently in progress</li> <li>Convert date and time values from one format to another format</li> <li>Retrieve information related to time zone descriptions</li> </ul> <p>The date and time APIs include:</p> <!-- ***** NOTE ***** Do not manually update text or links in this section. --> <!-- Updates made in this section *will* be overlaid by automated tools --> <!-- Notify User Technologies of needed updates to be made in XML for API finder.--> <!--***************API BEGIN PASTE***************--> <ul> <li><A HREF="qwcadjtm.htm">Adjust Time</A> (QWCADJTM) adjusts the time-of-day clock.</li> <li><A HREF="cvttotv.htm">Convert _MI_Time to Timeval Structure</A> (Qp0zCvtToTimeval()) converts a machine timestamp (or timestamp offset), represented by an _MI_Time data type, to a corresponding timeval structure.</li> <li><A HREF="qwccvtdt.htm">Convert Date and Time Format</A> (QWCCVTDT) allows you to convert date and time formats from one format to another format.</li> <li><A HREF="cvttomit.htm">Convert Timeval Structure to _MI_Time</A> (Qp0zCvtToMITime()) converts a UNIX-type timestamp (or timestamp offset), represented by a timeval structure, to a corresponding _MI_Time data type.</li> <li><A HREF="qwcrtvtm.htm">Retrieve System Time Information</A> (QWCRTVTM) retrieves the current Coordinated Universal Time and time adjustment information.</li> <li><A HREF="qwcrtvtz.htm">Retrieve Time Zone Description</A> (QWCRTVTZ) retrieves information about one or more time zone descriptions.</li> <li><A HREF="qwcsettm.htm">Set System Time</A> (QWCSETTM) sets the Coordinated Universal Time (UTC) for the system.</li> </ul> <!--***************API END PASTE***************--> <p>In addition to the date and time APIs above, the following APIs also work with date and time values:</p> <p><a href="ile4a2.htm">ILE CEE Date and Time APIs</a></p> <p><a href="hll3.htm">ILE C/C++ Run-Time Library Functions</a></p> <p><a href="catmi.htm">Machine Interface Instructions</a></p> <p><a href="unix10.htm">UNIX-Type Time APIs</a></p> <br> <hr> <center> <table cellpadding="2" cellspacing="2"> <tr align="center"> <td valign="middle" align="center"><a href="aplist.htm">APIs by category</a></td> </tr> </table> </center> </body> </html>