using DateTime perl module, replacing my code
make requirements to simplify dependencies