开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜