Don't call ReadArgs() if started from WB.
[tangerine.git] / compiler / clib / ctime.c
blobe62f75319bcc3581ede5508961ca2d34e9c134c0
1 /*
2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
3 $Id$
5 Return the current time in seconds.
6 */
8 /*****************************************************************************
10 NAME */
11 #include <time.h>
13 char * ctime (
15 /* SYNOPSIS */
16 const time_t * tt)
18 /* FUNCTION
19 The ctime() function converts the broken-down time value tt
20 into a string with this format:
22 "Wed Jun 30 21:49:08 1993\n"
24 The return value points to a statically allocated string which
25 might be overwritten by subsequent calls to any of the date and
26 time functions.
28 INPUTS
29 tt - Convert this time.
31 RESULT
32 A statically allocated buffer with the converted time. Note that
33 there is a newline at the end of the buffer and that the contents
34 of the buffer might get lost with the call of any of the date
35 and time functions.
37 NOTES
39 EXAMPLE
40 time_t tt;
41 char * str;
43 // Get time
44 time (&tt);
46 // Convert to string
47 str = ctime (&tt);
49 BUGS
51 SEE ALSO
52 time(), asctime(), localtime()
54 INTERNALS
56 ******************************************************************************/
58 return asctime (localtime (tt));
59 } /* ctime */