aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/sys.h
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2011-12-06 01:33:46 +0100
committerBjörn-Egil Dahlberg <[email protected]>2011-12-08 14:12:02 +0100
commit469815129bd1ce53dc332d2c75142292e0604ef3 (patch)
tree54781902dc4f2de4e4c662d9cf0f83a162f6bd8c /erts/emulator/beam/sys.h
parentabaefc0452f5b40841562da0f215e7d1ac371f1b (diff)
downloadotp-469815129bd1ce53dc332d2c75142292e0604ef3.tar.gz
otp-469815129bd1ce53dc332d2c75142292e0604ef3.tar.bz2
otp-469815129bd1ce53dc332d2c75142292e0604ef3.zip
Add utc <-> seconds conversions bifs
Diffstat (limited to 'erts/emulator/beam/sys.h')
-rw-r--r--erts/emulator/beam/sys.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/erts/emulator/beam/sys.h b/erts/emulator/beam/sys.h
index d8cd22a177..3abae2243c 100644
--- a/erts/emulator/beam/sys.h
+++ b/erts/emulator/beam/sys.h
@@ -668,6 +668,9 @@ void get_universaltime(int *year, int *month, int *day,
int *hour, int *minute, int *second);
int univ_to_local(Sint *year, Sint *month, Sint *day,
Sint *hour, Sint *minute, Sint *second);
+int univ_to_seconds(Sint year, Sint month, Sint day,
+ Sint hour, Sint minute, Sint second,
+ Sint64* seconds);
int local_to_univ(Sint *year, Sint *month, Sint *day,
Sint *hour, Sint *minute, Sint *second, int isdst);
void get_now(Uint*, Uint*, Uint*);