Re: How to Display a Time Interval


Marco S Hyman
 

Ooops, I’m wrong...

Can not be done accurately using only a Time Interval in seconds. You also need either the start or end date to figure out leap year complications.
Leap year complications should be part of the time interval and be ignored.

My programming history got the better of my knowledge... the first ever COBOL program I wrote figured out how many days until my military enlistment was over -- and it was off by one because of a leap year.

Join cocoa@apple-dev.groups.io to automatically receive all group messages.