projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
#pragma lib
[m6w6/ext-psi]
/
psi.d
/
time.psi
diff --git
a/psi.d/time.psi
b/psi.d/time.psi
index 0acbf9861247b9eab0014a629712db618430d2f2..84c47bac40f5b4a3a0cbc1d6ef4c81f6c03639a6 100644
(file)
--- 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 <sys/time.h>
#endif
#include <sys/time.h>
@@
-117,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));
+}