Made independent of the 'date' command for better Mac-OS support.