skipAutomaticSimplification & time calculation #2868
Unanswered
asparamancer
asked this question in
Q&A
Replies: 1 comment
-
An expression like The returned |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm a little unclear on the output of evaluate when on time based strings. I've got:
const tempString = 23 hours 16 minutes - 20 hours 00 minutes
const result = evaluate(tempString)
And the result when logged out in the console is is:
Unit {fixPrefix: false, skipAutomaticSimplification: false, units: Array(2), dimensions: Array(9), value: 79488000} dimensions : (9) [0, 0, 2, 0, 0, 0, 0, 0, 0] fixPrefix : false skipAutomaticSimplification : false units : (2) [{…}, {…}] value : 79488000 [[Prototype]] : Object
^ Formatter is making it a little hard to read here's a screenshot:
I don't see how I can get the value back out in hours and minutes 03:16, or just minutes (196)?
Beta Was this translation helpful? Give feedback.
All reactions