Date Delta
Date Delta is an object that refers to a delta that may be given in years, months, days, hours, minutes, seconds, milliseconds. A date delta can be resolved by calling toDate with a concrete date as parametr.
E.g. Given a date
var x = ; // the current date-timevar y = month: 1 days: 15 ;var withinDelta = y; // the current date-time plus 1 month and 15 days
A delta date object can be converted into milliseconds.
var x = day: 1 ;x; // a big number// evenx === x; // true
It's possible to compare deltas.
var x = month: 1 ;var y = days: 20 ;x > y; // true
Main goal
I want to define deltas for some simple calculations. Comparisions and some other features will fall into TODOS