how to use Poco::Timespan correctly ? #4080
Unanswered
omerbrandis
asked this question in
Q&A
Replies: 1 comment
-
|
I think you have to user totalHours |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all,
I'm somehow unable to use Poco::Timespan.
writes to stdout:
12-11 hours diff 0
which is the correct/expected value for FullDropOffDateTime.day() and FullPickupDateTime.day(),
but not for TS.hours() which should be 24.
while using Poco::Timestamp::TimeDiff on the same variables, works as expected :
writes to stdout :
hours diff 24
which is the expected result.
running poco 11.1.
please advise,
Omer.
Beta Was this translation helpful? Give feedback.
All reactions