#TIL #elixirlang milliseconds로 바꾸는 함수

iex> :timer.seconds(1)
1000
iex> :timer.minutes(1)
60000
iex> :timer.hours(1)
3600000
iex> :timer.hms(1, 0, 0)
3600000
iex> :timer.hms(1, 1, 1)
3661000

왜 elixir에 없지? 만들어서 쓰다가 erlang에 있는 걸 찾았다.

Feedback plz <3 @ohyecloudy, ohyecloudy@gmail.com

A Random Post