]> pd.if.org Git - pdclib/blob - includes/time.h
Minor doc extension.
[pdclib] / includes / time.h
1 // ----------------------------------------------------------------------------
2 // $Id$
3 // ----------------------------------------------------------------------------
4 // Public Domain C Library - http://pdclib.sourceforge.net
5 // This code is Public Domain. Use, modify, and redistribute at will.
6 // ----------------------------------------------------------------------------
7 // Date and time
8 // ----------------------------------------------------------------------------
9
10 #ifndef __TIME_H
11 #define __TIME_H __TIME_H
12
13 // TODO: Documentation.
14
15 // ----------------------------------------------------------------------------
16 // MACROS
17
18 #include "__NULL.h"
19
20 #define CLOCKS_PER_SEC // TODO - personality?
21
22 // ----------------------------------------------------------------------------
23 // TYPES
24
25 #include "__size_t.h"
26 #include "__tm.h"
27
28 typedef clock_t; // TODO - personality?
29 typedef time_t;  // TODO - personality?
30
31 // ----------------------------------------------------------------------------
32 // FUNCTIONS
33
34 char * asctime( const struct tm * tptr );
35 clock_t clock( void );
36 char * ctime( const time_t * tod );
37 double difftime( time_t t1, time_t t0 );
38 struct tm * gmtime( const time_t * tod );
39 struct tm * localtime( const time_t * tod );
40 time_t mktime( struct tm * tptr );
41 size_t strftime( char * restrict s, size_t n, const char * restrict format,
42                  const struct tm * restrict tptr );
43 time_t time( time_t * tod );
44
45 #endif // __TIME_H