I am currently encountering an issue regarding the dates management with Julia.
The case is that I have two dates, formated in a SQL-friendly date state and I would like to know the difference between them, in seconds.
Date 1 : 2018-06-13T04:40:49
Date 2 : 2018-06-13T04:47:12
I tried to convert these dates in supported dates, but I have now to manage with milliseconds :
time_difference = Dates.DateTime(date2) - Dates.DateTime(date1) println(time_difference) 383000 milliseconds
I cannot convert this milliseconds result into a seconds or hours results since I cannot perform a *() function on it :
time_difference = (Dates.DateTime(date2) - Dates.DateTime(date1) * 1000) println(time_difference) ERROR: LoadError: MethodError: no method matching *(::DateTime, ::Int64)
Would you have any method regarding this point ? In addition, how could we get the timestamp related to these two dates ? Since this is about seconds, we could then substract one to the other to get the seconds between them.
Thanks in advance for your help!