Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in PHP only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
PHP
How to convert RSS dates to second since epoch?
Collapse
This topic is closed.
X
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Duke of Hazard
#1
How to convert RSS dates to second since epoch?
Mar 29 '08, 04:45 AM
Any suggestions apart from brute force to convert a date like this:
2008-03-23T20:58:50-04:00
to seconds since 1970 ?
Michael Fesser
#2
Mar 29 '08, 07:45 AM
Re: How to convert RSS dates to second since epoch?
..oO(Duke of Hazard)
>Any suggestions apart from brute force to convert a date like this:
>
>2008-03-23T20:58:50-04:00
>
>to seconds since 1970 ?
strtotime()
Micha
Comment
Post
Cancel
Toby A Inkster
#3
Mar 30 '08, 07:05 PM
Re: How to convert RSS dates to second since epoch?
Duke of Hazard wrote:
2008-03-23T20:58:50-04:00
This is not an RSS date. RSS uses RFC-822-style dates, such as:
Sun, 30 Mar 2008 19:03:40 +0100
The date format you posted is and ISO-8601 date, as used by e.g. Atom.
--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 4 days, 5:22.]
Cognition 0.1 Alpha 6
Page not found - Tobyinkster
http://tobyinkster.co.uk/blog/2008/03/29/cognition-alpha6/
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment