1 //+-------------------------------------------------------------------------
2 //
3 //  For conditions of distribution and use, see copyright notice
4 //  in Flashpix.h
5 //
6 //  Copyright (c) 1999 Digital Imaging Group, Inc.
7 //
8 //  Contents: DocFile Time Support
9 //
10 //--------------------------------------------------------------------------
11 
12 #ifndef __TIME16_HXX__
13 #define __TIME16_HXX__
14 #include "h/storage.h"
15 #include "h/error.hxx"
16 #include <time.h>
17 
18 // Time type
19 typedef FILETIME TIME_T;
20 
21 STDAPI_(void) FileTimeToTimeT(const FILETIME *pft, time_t *ptt);
22 STDAPI_(void) TimeTToFileTime(const time_t *ptt, FILETIME *pft);
23 
CoFileTimeNow(TIME_T * pft)24 inline SCODE CoFileTimeNow(TIME_T *pft)
25 {
26     time_t tt;
27     time(&tt);
28     TimeTToFileTime(&tt, pft);
29     return S_OK;
30 }
31 
32 #endif
33