1
0

date.h 592 B

1234567891011121314151617181920
  1. #ifndef _OD_DATE_
  2. #define _OD_DATE_
  3. #include <time.h>
  4. /* These functions all work with "Internet"(RFC 822) format Date/Time strings only */
  5. /* An example of an RFC 822 format Date/Time string is "Thu, 28 Aug 2003 21:30:47 EDT" */
  6. /* converts the RFC 822 format date string into UTC Calendar time */
  7. time_t getDateSecs(char *date);
  8. /* returns a string that represents the given UTC Calendar time value as an
  9. RFC 822 format string. The buffer is user-supplied and must be at least
  10. 30 bytes in size. */
  11. char *getDateStr(time_t tmval, char *buffer, int gmt);
  12. #endif /*_OD_DATE_*/