LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-14-2003, 09:04 AM   #1
icepig
LQ Newbie
 
Registered: Nov 2003
Location: New York
Posts: 20

Rep: Reputation: 0
cookie expiration date in IE6


Hi, any idea on how to convert a datetime value in IE6 cookie file into a readable datetime?

example cookie file:
--------------------------------
bblastvisit
1056743762
www - linuxquestions - org/
1536
2609640704
29645751
1162649504
29572326
*
--------------------------------


Thanks
 
Old 11-17-2003, 04:37 AM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
It's a UNIXTIMESTAMP (seconds since 1/1/1970), so using PHP for instance you can use the date function to do so. Refer to the manual for more information!
 
Old 11-17-2003, 01:42 PM   #3
icepig
LQ Newbie
 
Registered: Nov 2003
Location: New York
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks, I tried this:
>>> echo date("Y-m-d", 2609640704);
but it returns:
>>> 1916-08-05

Can you give me some more details?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/etc/shadow expiration date liguorir Linux - Software 1 05-04-2004 02:42 PM
RHat 9 password expiration send-more-ux Red Hat 3 10-01-2003 05:56 PM
Samba Password Expiration kharris Linux - Software 1 09-22-2003 05:25 AM
Password expiration - help klmn1 Linux - General 1 12-30-2002 11:04 PM
Password expiration klmn1 Linux - Networking 1 12-26-2002 12:08 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration