/
ColdC/Functions/
ColdC/Structure/
<head><title>ColdC: Function/Method Reference: localtime()</title></head>

<body>

<h1 align=center><a href="/ColdC/">ColdC</a>: <a href="/ColdC/Functions/">Function/Method Reference</a>: localtime()</h1>

<hr>

<p>
<font size=+1><i>LIST</i> <b>localtime</b>(<i>[INTEGER <b>time</b>]</i>)</font>

<p>This function returns an 11 element list representing the specified
by the argument <var>time</var>.  If no argument is given, it will use
the current time instead.
The elements are taken directly from <code>struct tm</code> in C.  Elements
are broken down as follows:

<ol>
<li>INTEGER time (same as returned by the function <code>time()</code>)
<li>INTEGER seconds (0-59)
<li>INTEGER minutes (0-59)
<li>INTEGER hours (0-23))
<li>INTEGER day of month (0-31)
<li>INTEGER month in year (0-11)
<li>INTEGER year
<li>INTEGER week day (0-6)
<li>INTEGER year day (0-354<a href="#leap">*</a>)
<li>INTEGER is daylight savings in effect?
<li>STRING time zone name
</ol>

<p><dl compact><dt><a name="leap">*</a><dd>On leap years this is 0-355.</dl>
<p><hr size=4><p align=center><i>Last Modified on 23 Mar 1996</i>
<br><i>Copyright &copy; 1995, 1996, Brandon Gillespie</i>
</body>