Bugzilla – Bug 5635
Date To Unix Timestamp native request
Last modified: 2013-02-28 08:42:35 PST
It's very useful function to convert date to unix timestamp. native like DateToTime(day, month, year, hour, minutes, seconds)
Can you expand on your use case a bit, I can't think of any case this would be useful that doesn't involve getting data to/from a database (where it's handled natively).
i'm using date format dd-mm-yyyy in the KeyValues file for the vip plugin. It's easy to set date like dd-mm-yyyy rather than getting timestamp from some site and set it
Parsing logfiles for one. I'd hate to have to write an extension just to wrap a strptime call, assuming that Windows actually supports strptime.