X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=psi.d%2Ftime.psi;h=c7f83d118d32c883066c4e5583251fa05ca624eb;hp=89074341ce0f9f7b35c2753a8433c9749c08047a;hb=32cdc02a91cd535ae21e9a775664995f4691a824;hpb=601e13c0743234c53a62e68fc89f122069123c15 diff --git a/psi.d/time.psi b/psi.d/time.psi index 8907434..c7f83d1 100644 --- a/psi.d/time.psi +++ b/psi.d/time.psi @@ -1,3 +1,7 @@ +#ifdef linux /* old, anyway */ +lib "rt"; +#endif + #include #include #include @@ -113,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)); +}