Please, please, please don't encourage people to do this when there are perfectly good, well-maintained, well-tested date/time modules available to do the task. People copy-pasting or re-inventing their own date/time routines is an incredibly common source of bugs and maintenance nightmares.