Added some useful time-based macros