cache cpp defaults
[m6w6/ext-psi] / psi.d / time.psi
index 89074341ce0f9f7b35c2753a8433c9749c08047a..716e17610bd5b8613671417d488018c6c1ec8685 100644 (file)
@@ -1,3 +1,7 @@
+#ifdef linux /* old, anyway */
+lib "rt";
+#endif
+
 #include <sys/time.h>
 #include <time.h>
 #include <sys/times.h>
@@ -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));
+}