in reply to seconds into a date

By using the number of seconds since the epoch, you can use:
my (@date) = localtime($numSeconds);
See the time and localtime data in perldoc.