The first line should be using Datetime, after installing the Datetime c package Pkg.add("Datetime").
julia> using Datetime
julia> date(2013,7,1)
2013-07-01
julia> today()
2014-09-01
julia> dt = date(2013,7,1)
2013-07-01
julia> dt = datetime(2012,6,30,18,59,50,0,CST)
2012-06-30T18:59:50 CDT
julia> datetime(2013,7,1,12,0,0,0,UTC)
2013-07-01T12:00:00 UTC
Prior to Julia 0.4, you should stick with this.
source
share