I made some
simple date macros that give the time between two dates and one that will add (or subtract) a specific amount of time to the current date.
For some reason whenever I use new Date(); the object returned says it is 22 days ago. This is consistent so the add-time macro manually adds 22 to the day part. I can't figure out why, it should be the same thing as used in the now macro.
It seems like there should be a better way to do this, and hopefully I will add the option to give dates as strings instead of numbers.
Any suggestions on what operations would be useful to have?