MonobjcMonobjc Documented Class Library
NSDate Constructor (seconds)
NamespacesMonobjc.FoundationNSDateNSDate(Double)

Returns an NSDate object initialized relative to the current date and time by a given number of seconds.

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

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public NSDate(
	double seconds
)
Public Sub New ( _
	seconds As Double _
)
public:
NSDate(
	double seconds
)
Parameters
seconds (Double)
The number of seconds from relative to the current date and time to which the receiver should be initialized. A negative value means the returned object will represent a date in the past.
Return Value
An NSDate object initialized relative to the current date and time by seconds seconds.
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)