Skip to content
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.

Do not use deprecated :erlang.now/0 #37

Open
mspanc opened this issue Jan 5, 2017 · 2 comments
Open

Do not use deprecated :erlang.now/0 #37

mspanc opened this issue Jan 5, 2017 · 2 comments

Comments

@mspanc
Copy link
Contributor

mspanc commented Jan 5, 2017

When I am using toniq 1.2.0 with elixir 1.3.4, the following warning appears during compilation:

remote: warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information.
remote:   lib/toniq/keepalive_persistence.ex:113
@seivan
Copy link

seivan commented Jan 6, 2017

@mspanc
I don't got access to 1.3.4 now, but what happens if you dump :timer.now_diff(:erlang.now, {0, 0, 0}) * 1000
into iex?

I don't get anything on 1.4.0.

@mspanc
Copy link
Contributor Author

mspanc commented Jan 6, 2017

It is due to new erlang, not elixir

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants