How do I convert TIME into Cookie and last-modified-time format?

G

Guest

First of all, I want to know if Cookie's expiration time and HTTP's header's
last modified time are using the same format.

Secondly, how do I format the time from a 10923023324324 kind of number into
the cookie and http header format(s)?
 
R

Rhesa Rozendaal

First of all, I want to know if Cookie's expiration time and HTTP's header's
last modified time are using the same format.

Yes, they are. It's RFC 1123 format.
Secondly, how do I format the time from a 10923023324324 kind of number into
the cookie and http header format(s)?

use HTTP::Date;
print time2str( 1092302332 );
# prints Thu, 12 Aug 2004 09:18:52 GMT
 
J

J. Gleixner

First of all, I want to know if Cookie's expiration time and HTTP's header's
last modified time are using the same format.

Secondly, how do I format the time from a 10923023324324 kind of number into
the cookie and http header format(s)?

Perl has cookies??.. Cool, I'm hungry.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top