// Public Domain C Library - http://pdclib.sourceforge.net
// This code is Public Domain. Use, modify, and redistribute at will.
// ----------------------------------------------------------------------------
-// Provides a time datatype and time handling functions.
+// Date and time
// ----------------------------------------------------------------------------
#ifndef __TIME_H
#define __TIME_H __TIME_H
-// TODO
+// TODO: Documentation.
+
+// ----------------------------------------------------------------------------
+// MACROS
+
+#define CLOCKS_PER_SEC // TODO - personality?
+#define NULL 0
+
+// ----------------------------------------------------------------------------
+// TYPES
+
+typedef clock_t; // TODO - personality?
+typedef size_t; // TODO - personality?
+typedef time_t; // TODO - personality?
+struct tm; // TODO - personality?
+
+// ----------------------------------------------------------------------------
+// FUNCTIONS
+
+char * asctime( const struct tm * tptr );
+clock_t clock( void );
+char * ctime( const time_t * tod );
+double difftime( time_t t1, time_t t0 );
+struct tm * gmtime( const time_t * tod );
+struct tm * localtime( const time_t * tod );
+time_t mktime( struct tm * tptr );
+size_t strftime( char * restrict s, size_t n, const char * restrict format,
+ const struct tm * restrict tptr );
+time_t time( time_t * tod );
#endif // __TIME_H