So I have a function that turns a time_t into any date format, basically works the same as the PHP Date(). Now I'm trying to reverse the process. I'm getting a formatted date (publish date from RSS for example) and want to convert it back to a time_t.
Has anyone built anything like this before? Do you think there is value in making a function that can decode anything, or one specific to the date being sent?
I was thinking something like Decode_Date( l.date_string, l.time_t, 'Y-m-dTH:i:sO' ) but they just may be overkill. Especially when trying to convert timezone offsets.
Any help? Ideas?
Thanks,
/Scott Mc
Has anyone built anything like this before? Do you think there is value in making a function that can decode anything, or one specific to the date being sent?
I was thinking something like Decode_Date( l.date_string, l.time_t, 'Y-m-dTH:i:sO' ) but they just may be overkill. Especially when trying to convert timezone offsets.
Any help? Ideas?
Thanks,
/Scott Mc
Comment