1 /* 2 * Copyright (c) 2024 Meta Platforms 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #undef _POSIX_C_SOURCE 8 #define _POSIX_C_SOURCE 200809L 9 #include <time.h> 10 localtime_r(const time_t * timer,struct tm * result)11struct tm *localtime_r(const time_t *timer, struct tm *result) 12 { 13 return gmtime_r(timer, result); 14 } 15 localtime(const time_t * timer)16struct tm *localtime(const time_t *timer) 17 { 18 return gmtime(timer); 19 } 20