1 /* ----------------------------------------------------------------------------
3 * ----------------------------------------------------------------------------
4 * Public Domain C Library - http://pdclib.sourceforge.net
5 * This code is Public Domain. Use, modify, and redistribute at will.
6 * ----------------------------------------------------------------------------
8 * --------------------------------------------------------------------------*/
11 #define _TIME_H _TIME_H
17 /* TODO: Documentation. */
19 /* ----------------------------------------------------------------------------
21 * --------------------------------------------------------------------------*/
25 #define CLOCKS_PER_SEC /* TODO - to __intern.h / __personality.h? */
27 /* ----------------------------------------------------------------------------
29 * --------------------------------------------------------------------------*/
31 /* TODO: Get struct tm into __intern.h */
34 #define _SIZE_T _SIZE_T
35 typedef __size_t size_t;
38 typedef clock_t; /* TODO - to __intern.h / __personality.h? */
39 typedef time_t; /* TODO - to __intern.h / __personality.h? */
41 /* ----------------------------------------------------------------------------
43 * --------------------------------------------------------------------------*/
45 char * asctime( const struct tm * tptr );
46 clock_t clock( void );
47 char * ctime( const time_t * tod );
48 double difftime( time_t t1, time_t t0 );
49 struct tm * gmtime( const time_t * tod );
50 struct tm * localtime( const time_t * tod );
51 time_t mktime( struct tm * tptr );
52 size_t strftime( char * restrict s, size_t n, const char * restrict format,
53 const struct tm * restrict tptr );
54 time_t time( time_t * tod );