diff options
-rw-r--r-- | src/H5Omtime.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/H5Omtime.c b/src/H5Omtime.c index 6151915..9fa7b51 100644 --- a/src/H5Omtime.c +++ b/src/H5Omtime.c @@ -13,6 +13,11 @@ #include <H5MMprivate.h> #include <H5Oprivate.h> +#if defined WIN32 +#include <sys/types.h> +#include <sys/timeb.h> +#endif + #define PABLO_MASK H5O_mtime_mask static void *H5O_mtime_decode(H5F_t *f, const uint8_t *p, H5O_shared_t *sh); @@ -140,6 +145,20 @@ H5O_mtime_decode(H5F_t UNUSED *f, const uint8_t *p, } the_time -= tz.tz_minuteswest*60 - (tm.tm_isdst?3600:0); } +#elif defined WIN32 + { + + struct timeb timebuffer; + char *timeline; + long tz; + ftime( &timebuffer ); + + tz = timebuffer.timezone; + + the_time -=tz*60; + + +} #else /* * The catch-all. If we can't convert a character string universal |