开发者

Why is HTML::TokeParser's get_trimmed_text changing the format of the date?

开发者 https://www.devze.com 2023-01-17 04:56 出处:网络
I\'m using HTML::TokeParser to parse a website for a particular field.开发者_如何学Python The field looks as follows

I'm using HTML::TokeParser to parse a website for a particular field.开发者_如何学Python The field looks as follows

09/23/10 - 12:14 PM EDT

However, when I print whatever is received, It displays,

2010-09-23 12:14:32.0

Why the inconsistency? Is it recognizing it as a time parameter and converting it to some internal format? If so how can I read it as a string?


Would it be possible that the value HTML::TokeParser gives you is actually the date that's in the website's HTML, but the website also has some javascript to convert the date into your local timezone?

0

精彩评论

暂无评论...
验证码 换一张
取 消