Re: How to Display a Time Interval

Marco S Hyman

I have the Time Interval between now and the future date in seconds, but I can’t seem to find any methods to display this in terms of years. months, weeks, days etc.
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.

Is there a method or class somewhere that does this or do I need to roll my own?
Don’t know of any. I’d probably roll my own.


Join { to automatically receive all group messages.