Reputation: 8117
I have a duration
Day(42)
How can I convert it to an Int64
?
I have one solution, but is there other smart ways to do it?
Upvotes: 1
Views: 508
Reputation: 8117
The Dates
package contains the value
function for this.
Day(42) |> Dates.value
Upvotes: 2