Sorry, error in example. Should read:

datetime_string = "2015-08-12 12:01:23 PM"
timeout = unix2datetime(Calendar.parse("yyyy-MM-dd hh:mm:ss aa", 
datetime_string).millis/1000)



On Tuesday, 8 September 2015 17:27:25 UTC-4, Ian Butterworth wrote:
>
> I current use Calendar.jl to convert a datetime that contains AM/PM to the 
> datetime type like this:
> datetime_string = "2015-08-12 12:01:23 PM"
> timeout = unix2datetime(Calendar.parse(datetime_string, timein).millis/
> 1000)
>
> I'd like to do it without calendar.jl if possible.
>
> Any ideas?
>

Reply via email to