| 212 | RTM_EXPORT(gmtime); |
| 213 | |
| 214 | struct tm* localtime_r(const time_t* t, struct tm* r) |
| 215 | { |
| 216 | time_t local_tz; |
| 217 | #if defined(RT_LIBC_USING_LIGHT_TZ_DST) |
| 218 | local_tz = *t + rt_tz_get(); |
| 219 | #else |
| 220 | local_tz = *t + 0U; |
| 221 | #endif /* RT_LIBC_USING_LIGHT_TZ_DST */ |
| 222 | return gmtime_r(&local_tz, r); |
| 223 | } |
| 224 | RTM_EXPORT(localtime_r); |
| 225 | |
| 226 | struct tm* localtime(const time_t* t) |