SitePoint Sponsor

User Tag List

Results 1 to 1 of 1
  1. #1
    SitePoint Zealot
    Join Date
    Aug 2005
    Posts
    153
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Explain Date() to me...

    Ok, I have this code:

    Code:
    <SCRIPT TYPE="text/javascript">
    
        LocalTime        = new Date();
    
        document.cookie  = "time=" + LocalTime;
    
    </SCRIPT>
    Now, the part I need explanation is this:

    Some machines display the time like this: Sun Jan 15 22:27:40 EST 2005
    and others like this: Fri Dec 16 2005 09:16:14 GMT-0800 (GMT-8 Pacific Time (U.S./Canada/Mexico))

    Why the difference?, I thought the format was "fixed"
    Last edited by Jack_In_The_Box; Dec 16, 2005 at 20:04.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •