NaiveDateTime.add(Integer.pow(10, 9), :second)
Anyone explain me the whole. I am new in elixir.
Thanks!
Please take a look at the documentations of the functions to see what they do:
Note that there is no 2-argument version of NaiveDateTime.add
, so your code example is not valid. Probably itβs part of a pipeline that supplies the first argument.
1 Like