bugGNUstep - Bugs: bug #17729, NSCalendarDate fails if seconds...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #17729: NSCalendarDate fails if seconds passed is more than 59

Submitted by:  wixardy <wixardy>
Submitted on:  Wed 13 Sep 2006 08:02:16 PM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: Closed

Thu 14 Sep 2006 07:59:53 AM UTC, comment #1:

The legal range for seconds is 0-59 (as documented in both the MacOS-X and GNUstep documentation), so the example code fragment is simply wrong unless startTime is a time within the last minute.

Even if it was legal to pass in an arbitrary value for seconds, the example would still probably not do what was intended, unless
startTime == [NSDate dateWithTimeIntervalSinceReferenceDate: 0.0]

Richard Frith-Macdonald <CaS>
Project Member
Wed 13 Sep 2006 08:02:16 PM UTC, original submission:

performing an [NSCalendarDate dateWithYear:0 month:0 day:0 hour:0 minute:0 second:-([startTime timeIntervalSinceNow])]; will fail once the time interval is more than one minute.

wixardy <wixardy>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 14 Sep 2006 07:59:53 AM UTCCaSStatusNone=>Invalid
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1