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

Another pull request, for issue pmem/tmp-issues#3. We could test merging changes form multiple pull requests.

Signed-off-by: Lukas Redynk <lukas.redynk@gmail.com>