strange duration conversion from database
Multi platform library to read and write schedule data
Brought to you by:
joniles
I found strange problem. I have a project with duration set to 1
minute, 1 hour, 1 day, 1 week and 1 month. this project is stored in
db. I need to read duration over mpd into my application, but when I
do this I get following durations:
(I've used Duration.convertUnits() to convert it into minutes or hours
respectively)
1 minute ~ 10 minutes
1 hour ~ 600 hours
1 day ~ 8 hours (this looks fine)
1 week ~ 40 hours (this looks fine too)
1 month ~ 15 360 000 hours
Hi,
the code now in CVS fixes this.
Cheers!
Jon