MonobjcMonobjc Documented Class Library
AddTimeInterval Method (seconds)
NamespacesMonobjc.FoundationNSDateAddTimeInterval(Double)

Returns a new NSDate object that is set to a given number of seconds relative to the receiver. (Deprecated in Mac OS X v10.6. This method has been replaced by dateByAddingTimeInterval:.)

Original signature is '- (id)addTimeInterval:(NSTimeInterval)seconds'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
[ObsoleteAttribute("Deprecated in Mac OS X v10.6. This method has been replaced by dateByAddingTimeInterval:.")]
public virtual Id AddTimeInterval(
	double seconds
)
<ObsoleteAttribute("Deprecated in Mac OS X v10.6. This method has been replaced by dateByAddingTimeInterval:.")> _
Public Overridable Function AddTimeInterval ( _
	seconds As Double _
) As Id
[ObsoleteAttribute(L"Deprecated in Mac OS X v10.6. This method has been replaced by dateByAddingTimeInterval:.")]
public:
virtual Id^ AddTimeInterval(
	double seconds
)
Parameters
seconds (Double)
The number of seconds to add to the receiver. Use a negative value for seconds to have the returned object specify a date before the receiver.
Return Value
A new NSDate object that is set to seconds seconds relative to the receiver. The date returned might have a representation different from the receiver’s.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)