mirror of https://git.musl-libc.org/git/musl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
199 B
12 lines
199 B
#include <time.h>
|
|
|
|
#include "__time.h"
|
|
|
|
struct tm *localtime(const time_t *t)
|
|
{
|
|
static struct tm tm;
|
|
__tzset();
|
|
__time_to_tm(*t - __timezone, &tm);
|
|
tm.tm_isdst = -1;
|
|
return __dst_adjust(&tm);
|
|
}
|
|
|