in reply to Elapsed date and time

Work in epoch seconds and all your problems go away.

See Time::Local and localtime() for converting to/from epoch seconds.

--
Life is a tale told by an idiot -- full of sound and fury, signifying nothing. William Shakespeare, Macbeth