1428 localtime_r(&long_time, &t); |
1428 localtime_r(&long_time, &t); |
1429 jio_snprintf(buf, buflen, "%d-%02d-%02d %02d:%02d:%02d", |
1429 jio_snprintf(buf, buflen, "%d-%02d-%02d %02d:%02d:%02d", |
1430 t.tm_year + 1900, t.tm_mon + 1, t.tm_mday, |
1430 t.tm_year + 1900, t.tm_mon + 1, t.tm_mday, |
1431 t.tm_hour, t.tm_min, t.tm_sec); |
1431 t.tm_hour, t.tm_min, t.tm_sec); |
1432 return buf; |
1432 return buf; |
|
1433 } |
|
1434 |
|
1435 struct tm* os::localtime_pd(const time_t* clock, struct tm* res) { |
|
1436 return localtime_r(clock, res); |
1433 } |
1437 } |
1434 |
1438 |
1435 //////////////////////////////////////////////////////////////////////////////// |
1439 //////////////////////////////////////////////////////////////////////////////// |
1436 // runtime exit support |
1440 // runtime exit support |
1437 |
1441 |