in reply to Time/date calculation

Hie Monks.....

Thanks for all the advise and tips.... I am actually working on a huge production server (6 million subscribers) and the perl version is kinda old and not all modules are installed.

That's why i would avoid using module whenever it is possible. I like the solution by pg (and also the rest). Anyway, i have solve my problem with bits and pieces..

Cheers....