• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSDate bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDate bug


  • Subject: NSDate bug
  • From: email@hidden (mikevannorsdel)
  • Date: Mon, 26 Nov 2001 17:45:56 -0700

I believe I found a bug in NSDate. I was trying to get the epoch value for the current date doing:

unsigned long time = [[NSDate date] timeIntervalSince1970];

The correct epoch should be 1006821791 (Mon Nov 26 17:43:11 MST 2001). But the above returns 1104019824 (Sat Dec 25 17:10:24 MST 2004). Is this a known issue? Or did I miss something?


  • Follow-Ups:
    • Re: NSDate bug
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Re: Launching as Root
  • Next by Date: Re: Internal Modem
  • Previous by thread: Re: Programatically changing the spelling language
  • Next by thread: Re: NSDate bug
  • Index(es):
    • Date
    • Thread