Sigrid Solveig Haflínudóttirtime funcs: set timezone73101d73 years agoHistory
22 lines · 365 B · C
RawDownload
#include <time.h>#include "_npe.h" time_tmktime(struct tm *tm){	Tm t; 	t.sec = tm->tm_sec;	t.min = tm->tm_min;	t.hour = tm->tm_hour;	t.mday = tm->tm_mday;	t.mon = tm->tm_mon;	t.year = tm->tm_year;	t.wday = tm->tm_wday;	t.yday = tm->tm_yday;	t.tzoff = 0;	t.tz = tzload(tm->tm_zone);	/* ... = tm.tm_isdst; */ /* FIXME */ 	return tmnorm(&t) / Nsec;}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t