Ho read as Date.Time ? Date? this string : 2016-01-17 01:00:25

Ho read as Date.Time ? Date? this string : 2016-01-17 01:00:25
Paul

https://en.wikibooks.org/wiki/Introducing_Julia/Working_with_dates_and_times

2 Likes

Big Thx,
I have read all but no answer
how to convert to data any “value”:

all is nice :
Dates.DateTime(“2016-05-02 14:41:59”,“yyyy-mm-dd HH:MM:SS”)
2016-05-02T14:41:59
point=Dates.DateTime(“2016-05-02 14:41:59”,“yyyy-mm-dd HH:MM:SS”)
2016-05-02T14:41:59
mypoint=Dates.value(moment)
63597883319000

But what to convert to data “mypoint” ?
DateTime(mypoint)
156422328-04-17T06:00:34.048 ?

DateTime(mypoint)
156422328-04-17T06:00:34.048 ?
Some sugestion ?
Paul

W dniu 2017-02-01 o 01:22, David P. Sanders pisze:

Does convert(DateTime, mypoint) do what you want?

BIG THX , no info about it in julia docs :wink:
Paul
W dniu 2017-02-01 o 12:19, David P. Sanders pisze:

If that’s true then it should probably be fixed. I took an “educated guess” (otherwise known as trying a few things that sometimes work).

My way :
open julia_documentation_0.5.1_pre.pdf
CTL+f
paste (|convert(DateTime)
empty result :slight_smile:
Paul

|W dniu 2017-02-01 o 15:04, David P. Sanders pisze: