3030
3131# constructors
3232
33- function InlineDateTime64 {U} (
34- v:: Union{AbstractDateTime64,AbstractString,Dates.DateTime,Dates.Date} ,
35- ) where {U}
33+ function InlineDateTime64 {U} (v:: AbstractDateTime64 ) where {U}
34+ InlineDateTime64 {U} (value (DateTime64 (v, U)))
35+ end
36+
37+ function InlineDateTime64 {U} (v:: AbstractString ) where {U}
38+ InlineDateTime64 {U} (value (DateTime64 (v, U)))
39+ end
40+
41+ function InlineDateTime64 {U} (v:: Dates.DateTime ) where {U}
42+ InlineDateTime64 {U} (value (DateTime64 (v, U)))
43+ end
44+
45+ function InlineDateTime64 {U} (v:: Dates.Date ) where {U}
3646 InlineDateTime64 {U} (value (DateTime64 (v, U)))
3747end
3848
@@ -47,10 +57,19 @@ function InlineDateTime64{U}(
4757 InlineDateTime64 {U} (value (DateTime64 (v, f, U)))
4858end
4959
50- function InlineDateTime64 (
51- v:: Union{AbstractDateTime64,AbstractString,Dates.DateTime,Dates.Date} ,
52- u:: UnitArg = defaultunit (v),
53- )
60+ function InlineDateTime64 (v:: AbstractDateTime64 , u:: UnitArg = defaultunit (v))
61+ InlineDateTime64 {unitparam(u)} (v)
62+ end
63+
64+ function InlineDateTime64 (v:: AbstractString , u:: UnitArg = defaultunit (v))
65+ InlineDateTime64 {unitparam(u)} (v)
66+ end
67+
68+ function InlineDateTime64 (v:: Dates.DateTime , u:: UnitArg = defaultunit (v))
69+ InlineDateTime64 {unitparam(u)} (v)
70+ end
71+
72+ function InlineDateTime64 (v:: Dates.Date , u:: UnitArg = defaultunit (v))
5473 InlineDateTime64 {unitparam(u)} (v)
5574end
5675
0 commit comments