Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 9 lines (7 sloc) 295 Bytes
-module(utils).
-author("trung@mdkt.org").
-compile(export_all).
milliseconds_to_date(Milliseconds) ->
BaseDate = calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}}),
Seconds = BaseDate + (Milliseconds div 1000),
calendar:gregorian_seconds_to_datetime(Seconds).
Something went wrong with that request. Please try again.