X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=psi.d%2Ftime.psi;h=716e17610bd5b8613671417d488018c6c1ec8685;hp=0acbf9861247b9eab0014a629712db618430d2f2;hb=fecb0372ee8e219a7ebd51406dee3e1008ccb7ec;hpb=e42201d972c98549b7d5edfaf4a89e2aac101afe;ds=sidebyside diff --git a/psi.d/time.psi b/psi.d/time.psi index 0acbf98..716e176 100644 --- a/psi.d/time.psi +++ b/psi.d/time.psi @@ -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)); +}