diff options
Diffstat (limited to 'manual.tex')
-rw-r--r-- | manual.tex | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -1,4 +1,4 @@ | |||
1 | % $Id: manual.tex,v 1.7 1996/02/09 16:37:58 roberto Exp roberto $ | 1 | % $Id: manual.tex,v 1.8 1996/02/09 17:21:27 roberto Exp roberto $ |
2 | 2 | ||
3 | \documentstyle[A4,11pt,bnf]{article} | 3 | \documentstyle[A4,11pt,bnf]{article} |
4 | 4 | ||
@@ -32,7 +32,7 @@ Waldemar Celes Filho | |||
32 | Departamento de Inform\'atica --- PUC-Rio | 32 | Departamento de Inform\'atica --- PUC-Rio |
33 | } | 33 | } |
34 | 34 | ||
35 | \date{\small \verb$Date: 1996/02/09 16:37:58 $} | 35 | \date{\small \verb$Date: 1996/02/09 17:21:27 $} |
36 | 36 | ||
37 | \maketitle | 37 | \maketitle |
38 | 38 | ||
@@ -1440,17 +1440,17 @@ and strings with \verb'%s'. | |||
1440 | For better format facilities, | 1440 | For better format facilities, |
1441 | the function \verb'format' should be used (\see{format}). | 1441 | the function \verb'format' should be used (\see{format}). |
1442 | 1442 | ||
1443 | \subsubsection*{{\tt date ()}}\Deffunc{date} | 1443 | \subsubsection*{{\tt date ([format])}}\Deffunc{date} |
1444 | 1444 | ||
1445 | This function returns 4 values: | 1445 | This function returns a string containing date and time |
1446 | the current day of the month, | 1446 | formatted according to the given string \verb'format', |
1447 | the month ([1-12]), the current year, | 1447 | following the same rules of the ANSI C function \verb'strftime'. |
1448 | and the day of the week (1 = Sunday, 7 = Saturday). | 1448 | When called without arguments, |
1449 | it returns a reasonable date and time representation. | ||
1449 | 1450 | ||
1450 | \subsubsection*{{\tt time ()}}\Deffunc{time} | 1451 | This function replaces functions \verb'date' and \verb'time' from |
1452 | previous Lua versions. | ||
1451 | 1453 | ||
1452 | This function returns the current time through 3 values: | ||
1453 | hours ([0-23]), minutes, and seconds. | ||
1454 | 1454 | ||
1455 | % \subsubsection*{{\tt debug ()}} | 1455 | % \subsubsection*{{\tt debug ()}} |
1456 | % This function, when called, repeatedly presents a prompt \verb'lua_debug> ' | 1456 | % This function, when called, repeatedly presents a prompt \verb'lua_debug> ' |