/
html/
<HTML>
<HEAD>
<!-- This HTML file has been created by texi2html 1.51
     from ProgrammersManual.texinfo on 4 March 1997 -->

<TITLE>LambdaMOO Programmer's Manual - Time</TITLE>
</HEAD>
<BODY>
Go to the <A HREF="ProgrammersManual_1.html">first</A>, <A HREF="ProgrammersManual_52.html">previous</A>, <A HREF="ProgrammersManual_54.html">next</A>, <A HREF="ProgrammersManual_77.html">last</A> section, <A HREF="ProgrammersManual_toc.html">table of contents</A>.
<P><HR><P>


<H3><A NAME="SEC53" HREF="ProgrammersManual_toc.html#TOC53">Operations Involving Times and Dates</A></H3>

<P>
<DL>
<DT><U>Function:</U> int <B>time</B> <I>()</I>
<DD><A NAME="IDX101"></A>
Returns the current time, represented as the number of seconds that have
elapsed since midnight on 1 January 1970, Greenwich Mean Time.
</DL>

</P>
<P>
<DL>
<DT><U>Function:</U> str <B>ctime</B> <I>([int <VAR>time</VAR>])</I>
<DD><A NAME="IDX102"></A>
Interprets <VAR>time</VAR> as a time, using the same representation as given in the
description of <CODE>time()</CODE>, above, and converts it into a 28-character,
human-readable string in the following format:

</P>

<PRE>
Mon Aug 13 19:13:20 1990 PDT
</PRE>

<P>
If the current day of the month is less than 10, then an extra blank appears
between the month and the day:

</P>

<PRE>
Mon Apr  1 14:10:43 1991 PST
</PRE>

<P>
If <VAR>time</VAR> is not provided, then the current time is used.

</P>
<P>
Note that <CODE>ctime()</CODE> interprets <VAR>time</VAR> for the local time zone of the
computer on which the MOO server is running.
</DL>

</P>
<P><HR><P>
Go to the <A HREF="ProgrammersManual_1.html">first</A>, <A HREF="ProgrammersManual_52.html">previous</A>, <A HREF="ProgrammersManual_54.html">next</A>, <A HREF="ProgrammersManual_77.html">last</A> section, <A HREF="ProgrammersManual_toc.html">table of contents</A>.
</BODY>
</HTML>