3. Time and Time Correction in Erlang

3 Time and Time Correction in Erlang

3.1 New Extended Time Functionality

Note

As from Erlang/OTP 18 (ERTS 7.0) the time functionality has been extended. This includes a new API for time and time warp modes that change the system behavior when system time changes.

The default time warp mode has the same behavior as before, and the old API still works. Thus, you are not required to change anything unless you want to. However, you are strongly encouraged to use the new API instead of the old API based on erlang:now/0. erlang:now/0 is deprecated, as it is and will be a scalability bottlene