Universal utility for calculate difference or sum between two dates and times. And many other things.


=

Examples:
  • 7 days - 15 hours — Subtract time
  • 2005-03-28 - 1986-08-03 — Calculate elapsed time.
  • 1986-08-03 - 2005-03-28 — Calculation of remaining time.
  • 2005-03-28 16:45:00 + 1 min — Addition to the date and time of one minute
  • 16:45:00 + 1 min — To add to the time of the current day 11 minutes
  • now + 2 hour - 11 min — To add to the current time 2 hours and subtract 11 minutes
  • now - 1986-08-03 — To subtract from the current time specified date. So let's calculate how much time has passed.
  • now - 3 week - (10 days + 11 hours) - (1 min * 30) + 12 min - 13 sec — An example of a complex calculation
  • now > 1999-01-01 — An example of a Boolean expression. If the current date is greater 1999-01-01 return true, иначе false