Have you looked at what other twitter apps are doing? If a scripting language like python's having issues, I can't imagine trying to implement a timestamp parser in C/C++.