aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/sys.h
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2011-12-06 02:55:13 +0100
committerBjörn-Egil Dahlberg <[email protected]>2011-12-08 14:12:02 +0100
commit8f36514229bfaaa6ede8a2daa6aa920686d4251f (patch)
tree9542b2b4182094c1a32e54ead33d4ae85b92e0b7 /erts/emulator/beam/sys.h
parent469815129bd1ce53dc332d2c75142292e0604ef3 (diff)
downloadotp-8f36514229bfaaa6ede8a2daa6aa920686d4251f.tar.gz
otp-8f36514229bfaaa6ede8a2daa6aa920686d4251f.tar.bz2
otp-8f36514229bfaaa6ede8a2daa6aa920686d4251f.zip
Remove OS taint from datetime conversion
Diffstat (limited to 'erts/emulator/beam/sys.h')
-rw-r--r--erts/emulator/beam/sys.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/erts/emulator/beam/sys.h b/erts/emulator/beam/sys.h
index 3abae2243c..038c319470 100644
--- a/erts/emulator/beam/sys.h
+++ b/erts/emulator/beam/sys.h
@@ -666,11 +666,15 @@ void get_localtime(int *year, int *month, int *day,
int *hour, int *minute, int *second);
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 seconds_to_univ(Sint64 seconds,
+ 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 univ_to_local(
+ Sint *year, Sint *month, Sint *day,
+ Sint *hour, Sint *minute, Sint *second);
int local_to_univ(Sint *year, Sint *month, Sint *day,
Sint *hour, Sint *minute, Sint *second, int isdst);
void get_now(Uint*, Uint*, Uint*);