projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
more verbose context ops
[m6w6/ext-psi]
/
psi.d
/
time.psi
diff --git
a/psi.d/time.psi
b/psi.d/time.psi
index 89074341ce0f9f7b35c2753a8433c9749c08047a..716e17610bd5b8613671417d488018c6c1ec8685 100644
(file)
--- a/
psi.d/time.psi
+++ b/
psi.d/time.psi
@@
-1,3
+1,7
@@
+#ifdef linux /* old, anyway */
+lib "rt";
+#endif
+
#include <sys/time.h>
#include <time.h>
#include <sys/times.h>
#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)
);
}
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));
+}