root/include/std/time.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 #ifndef TIME_H
   2 #define TIME_H
   3 
   4 // CHDK time
   5 
   6 // Note: used in modules and platform independent code. 
   7 // Do not add platform dependent stuff in here (#ifdef/#endif compile options or camera dependent values)
   8 
   9 //==========================================================
  10 
  11 struct tm {
  12     int tm_sec; /* seconds after the minute     - [0, 59] */
  13     int tm_min; /* minutes after the hour       - [0, 59] */
  14     int tm_hour;        /* hours after midnight         - [0, 23] */
  15     int tm_mday;        /* day of the month             - [1, 31] */
  16     int tm_mon; /* months since January         - [0, 11] */
  17     int tm_year;        /* years since 1900     */
  18     int tm_wday;        /* days since Sunday            - [0, 6] */
  19     int tm_yday;        /* days since January 1         - [0, 365] */
  20     int tm_isdst;       /* Daylight Saving Time flag */
  21 };
  22 
  23 typedef unsigned long time_t;
  24 
  25 extern struct tm * localtime(const time_t *_tod);
  26 extern struct tm * get_localtime();
  27 
  28 struct utimbuf {
  29     unsigned long actime;       /* set the access time */
  30     unsigned long modtime;      /* set the modification time */
  31 };
  32 
  33 extern int utime(const char *file, struct utimbuf *newTimes);
  34 extern unsigned long time(unsigned long *timer);
  35 extern long strftime(char *s, unsigned long maxsize, const char *format, const struct tm *timp);
  36 extern time_t mktime(struct tm *timp);
  37 
  38 //---------------------------------------------------------------
  39 
  40 #endif

/* [<][>][^][v][top][bottom][index][help] */