Welcome to WebmasterWorld Guest from 54.160.163.163

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Going from RFC2822 date to epoch

     

The_Hat

5:01 pm on Nov 27, 2009 (gmt 0)

10+ Year Member



Is there any existing php function to take a RFC2822 date (such as Tue, 24 Nov 2009 19:46:56 -0600) and convert it to epoch? Or do I just need to substr or explode it to convert it?

The_Hat

9:37 pm on Nov 27, 2009 (gmt 0)

10+ Year Member



Derrrr.. $epoch = strtotime(RFC2822);

TGIF

rocknbil

10:02 pm on Nov 27, 2009 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



select unix_timestamp('valid mysql date here')?

You'd have to reformat it using mysql date/time functions . . .

 

Featured Threads

Hot Threads This Week

Hot Threads This Month