summaryrefslogblamecommitdiff
path: root/src/time/localtime_r.c
blob: 389a5917f2bbe1e9c7ddba579e853e76e4309271 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11



                   
                                                                            





                                              
#include <time.h>

#include "__time.h"

struct tm *localtime_r(const time_t *restrict t, struct tm *restrict result)
{
	__tzset();
	__time_to_tm(*t - __timezone, result);
	result->tm_isdst = -1;
	return __dst_adjust(result);
}