X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=psi.d%2Ftime.psi;h=84c47bac40f5b4a3a0cbc1d6ef4c81f6c03639a6;hp=0acbf9861247b9eab0014a629712db618430d2f2;hb=93d6b7f962a82b725d1918684297d68221b0b733;hpb=f3fc4c459243cc41f20d225cb0a87f186bf1dbc1 diff --git a/psi.d/time.psi b/psi.d/time.psi index 0acbf98..84c47ba 100644 --- a/psi.d/time.psi +++ b/psi.d/time.psi @@ -1,5 +1,5 @@ -#ifdef linux /* old, anyway */ -lib "rt"; +#ifdef __linux__ /* old, anyway */ +#pragma lib "rt"; #endif #include @@ -117,3 +117,12 @@ function psi\times(array &$tms = NULL) : int { to_int(tms_cstime) ); } + + +function psi\tzset() : void { + return tzset() as void(tzset); +} + +function psi\tzname() : array { + return tzname_get() as to_array(*tzname_get, 2, to_string(*tzname_get)); +}