• 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
Re: Adding 30 minutes to an NSDate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding 30 minutes to an NSDate


  • Subject: Re: Adding 30 minutes to an NSDate
  • From: Andy Lee <email@hidden>
  • Date: Wed, 20 Jul 2005 03:25:37 -0400

On Jul 20, 2005, at 3:14 AM, Uli Kusterer wrote:
is there a recommended way to add 30 minutes to an NSDate?


How about -addTimeInterval:?

addTimeInterval:

- (id)addTimeInterval:(NSTimeInterval)seconds

Returns an NSDate object that is set to a specified number of seconds, seconds, relative to the receiver. Use a negative value for seconds to have the returned object specify a date before the receiver. The date returned might have a representation different from the receiver’s.


--Andy

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Adding 30 minutes to an NSDate (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: Adding 30 minutes to an NSDate
  • Next by Date: Re: Adding 30 minutes to an NSDate
  • Previous by thread: Re: Adding 30 minutes to an NSDate
  • Next by thread: Re: Adding 30 minutes to an NSDate
  • Index(es):
    • Date
    • Thread