days = Date("2020-01-02") - Date("2019-01-12")
days |> display #355 days
days |> typeof |> display #Day
years = Dates.value(days) / 365
years |> display #0.9726027397260274
355 days
Day
0.9726027397260274
days = Date("2020-01-02") - Date("2019-01-12")
days |> display #355 days
days |> typeof |> display #Day
years = Dates.value(days) / 365
years |> display #0.9726027397260274
355 days
Day
0.9726027397260274
本文标题:julia 计算两个日期之差有几天,有几年!
本文链接:https://www.haomeiwen.com/subject/jetfvktx.html
网友评论