DateTime calculations

odometer:
@jurs:
What about leap years?
Try these pairs of dates:

Yes, you are right. Although every fourth year is considered to be a leap year already, the leap year handling is sometimes off by one day under certain circumstances. I'll have to work over the algorithm, I think.

Jozi68:
The next step would be to get the difference between current time and MyTime.

So both your timestamps are precise up to one minute only (no seconds)?
And you need the time difference in "total minutes"?
You don't need the difference in "days - hours - minutes"?
Or what?