Restored to_time_t() function removed by commit 6636f49f13154555b3b9c9618fca5f03cf47a5b3.
Merge pull request #13 from Lastique/develop

Restored to_time_t() function