equal
deleted
inserted
replaced
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; |