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.

36 lines
1.6 KiB

  1. //---------------------------------------------------------------------------
  2. // TimeConv.h : Date time conversion routines
  3. //
  4. // Copyright (c) 1996 Microsoft Corporation, All Rights Reserved
  5. // Developed by Sheridan Software Systems, Inc.
  6. //---------------------------------------------------------------------------
  7. #ifndef __TIMECONV_H__
  8. #define __TIMECONV_H__
  9. //-----------------------------------------------------------------------
  10. // The following routines convert between differnt data/time formats
  11. // they return TRUE if successful otherwise they return FALSE
  12. //-----------------------------------------------------------------------
  13. BOOL VDConvertToFileTime(DBTIMESTAMP * pDBTimeStamp, FILETIME * pFileTime);
  14. BOOL VDConvertToFileTime(DBDATE * pDBDate, FILETIME * pFileTime);
  15. BOOL VDConvertToFileTime(DATE * pDate, FILETIME * pFileTime);
  16. BOOL VDConvertToFileTime(DBTIME * pDBTime, FILETIME * pFileTime);
  17. BOOL VDConvertToDBTimeStamp(FILETIME * pFileTime, DBTIMESTAMP * pDBTimeStamp);
  18. BOOL VDConvertToDBTimeStamp(DATE * pDate, DBTIMESTAMP * pDBTimeStamp);
  19. BOOL VDConvertToDBDate(FILETIME * pFileTime, DBDATE * pDBDate);
  20. BOOL VDConvertToDBDate(DATE * pDate, DBDATE * pDBDate);
  21. BOOL VDConvertToDBTime(FILETIME * pFileTime, DBTIME * pDBTime);
  22. BOOL VDConvertToDBTime(DATE * pDate, DBTIME * pDBTime);
  23. BOOL VDConvertToDate(FILETIME * pFileTime, DATE * pDate);
  24. BOOL VDConvertToDate(DBTIMESTAMP * pDBTimeStamp, DATE * pDate);
  25. BOOL VDConvertToDate(DBTIME * pDBTime, DATE * pDate);
  26. BOOL VDConvertToDate(DBDATE * pDBDate, DATE * pDate);
  27. #endif //__TIMECONV_H__