Implementation of date time routine, closes pmem/tmp-issues#3

Signed-off-by: Lukas Redynk <lukas.redynk@gmail.com>
Merge pull request #15 from Erdk/lukred-datetime

Implementation of date time routine, closes pmem/tmp-issues#3