Pretty boring snippet today, but I find it immensely useful. My time class provides representations of periods from OneMinute to OneYear. It only has one method which will calculate an absolute time by adding a given time period to the current time. You can optionally provide a format intended for use by the date function to return a formatted string rather than a timestamp.
Hope you find it useful too.
Comments, questions, suggestions and requests are welcomed as always.
Possibly related posts (automatically generated)...