diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2015-09-02 14:13:23 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2015-09-02 14:13:23 +0300 |
commit | eebd4bbd8f755962a43e4b9aa5ecb54eb913f210 (patch) | |
tree | 6b331b4892b7c7ef1eb364bf1d49ad8961ff5a1c /src/mod_mam.erl | |
parent | 87f39c875076061fd19ab1fa5c31b4c4f8f70b3d (diff) |
Remove unused function now_to_iso/1
Diffstat (limited to 'src/mod_mam.erl')
-rw-r--r-- | src/mod_mam.erl | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mod_mam.erl b/src/mod_mam.erl index 730b2ba91..b476ff681 100644 --- a/src/mod_mam.erl +++ b/src/mod_mam.erl @@ -931,11 +931,6 @@ usec_to_now(Int) -> Sec = Secs rem 1000000, {MSec, Sec, USec}. -now_to_iso({_, _, USec} = Now) -> - DateTime = calendar:now_to_universal_time(Now), - {ISOTimestamp, Zone} = jlib:timestamp_to_iso(DateTime, utc, USec), - <<ISOTimestamp/binary, Zone/binary>>. - datetime_to_now(DateTime, USecs) -> Seconds = calendar:datetime_to_gregorian_seconds(DateTime) - calendar:datetime_to_gregorian_seconds({{1970, 1, 1}, {0, 0, 0}}), |