MonobjcMonobjc Documented Class Library
DateByAddingTimeInterval Method (seconds)
NamespacesMonobjc.FoundationNSDateDateByAddingTimeInterval(Double)

Returns a new NSDate object that is set to a given number of seconds relative to the receiver.

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

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSDate DateByAddingTimeInterval(
	double seconds
)
Public Overridable Function DateByAddingTimeInterval ( _
	seconds As Double _
) As NSDate
public:
virtual NSDate^ DateByAddingTimeInterval(
	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)

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