why is Duration class hasn't method toSeconds? i found only toMillis #1703
-
Beta Was this translation helpful? Give feedback.
Answered by
diesieben07
Apr 27, 2025
Replies: 1 comment
-
You can use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ensomnatt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
duration.as("seconds")
.