hotspot/src/os/windows/vm/os_windows.cpp
changeset 42066 46f6db750b17
parent 41717 ca79023acae8
child 43438 af4378756105
equal deleted inserted replaced
42065:6032b31e3719 42066:46f6db750b17
   394   return sz;
   394   return sz;
   395 }
   395 }
   396 
   396 
   397 struct tm* os::localtime_pd(const time_t* clock, struct tm* res) {
   397 struct tm* os::localtime_pd(const time_t* clock, struct tm* res) {
   398   const struct tm* time_struct_ptr = localtime(clock);
   398   const struct tm* time_struct_ptr = localtime(clock);
       
   399   if (time_struct_ptr != NULL) {
       
   400     *res = *time_struct_ptr;
       
   401     return res;
       
   402   }
       
   403   return NULL;
       
   404 }
       
   405 
       
   406 struct tm* os::gmtime_pd(const time_t* clock, struct tm* res) {
       
   407   const struct tm* time_struct_ptr = gmtime(clock);
   399   if (time_struct_ptr != NULL) {
   408   if (time_struct_ptr != NULL) {
   400     *res = *time_struct_ptr;
   409     *res = *time_struct_ptr;
   401     return res;
   410     return res;
   402   }
   411   }
   403   return NULL;
   412   return NULL;