How can I convert this string 05/Feb/2010:14:00:01 to unixtime ?
How can I convert this string 05/Feb/2010:14:00:01 to unixtime ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For PHP 5.3 this should work. You may need to fiddle with passing $dateInfo[‘is_dst’], wasn’t working for me anyhow.
Versions prior, this should work.
You may not like regular expressions. You could annotate it, of course, but not everyone likes that either. So, this is an alternative.
Or substr, or explode, whatever you wish to parse that string.