summaryrefslogblamecommitdiffstats
path: root/src/include/time.h
blob: f33300ab3f3d467792f732210dc68789311c745b (plain) (tree)
1
2
3
4
5
6
7
8


               



                
 


                       
           

















                                           

  


                                       
#ifndef _TIME_H
#define _TIME_H

/** @file
 *
 * Date and time
 */

#include <sys/time.h>

/** Broken-down time */
struct tm {
	/** Seconds [0,60] */
	int tm_sec;
	/** Minutes [0,59] */
	int tm_min;
	/** Hour [0,23] */
	int tm_hour;
	/** Day of month [1,31] */
	int tm_mday;
	/** Month of year [0,11] */
	int tm_mon;
	/** Years since 1900 */
	int tm_year;
	/** Day of week [0,6] (Sunday=0) */
	int tm_wday;
	/** Day of year [0,365] */
	int tm_yday;
	/** Daylight savings flag */
	int tm_isdst;
};

extern time_t mktime ( struct tm *tm );

#endif /* _TIME_H */