Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
789 B

  1. #ifndef __ISO8601_H
  2. #define __ISO8601_H
  3. #define ISO8601_ST_YEAR 0x00000001
  4. #define ISO8601_ST_MONTH 0x00000002
  5. #define ISO8601_ST_DAYOFWEEK 0x00000004
  6. #define ISO8601_ST_DAY 0x00000008
  7. #define ISO8601_ST_HOUR 0x00000010
  8. #define ISO8601_ST_MINUTE 0x00000020
  9. #define ISO8601_ST_MILLISEC 0x00000040
  10. class iso8601
  11. {
  12. public:
  13. static HRESULT toSystemTime(char *pszISODate, SYSTEMTIME *pst, DWORD *pdwFlags, BOOL fLenient = TRUE, BOOL fPartial = TRUE);
  14. static HRESULT toFileTime(char *pszISODate, FILETIME *pft, DWORD *pdwFlags, BOOL fLenient = TRUE, BOOL fPartial = TRUE);
  15. static HRESULT fromSystemTime(SYSTEMTIME *pst, char *pszISODate);
  16. static HRESULT fromFileTime(FILETIME *pft, char *pszISOData);
  17. };
  18. #endif