MonobjcMonobjc Documented Class Library
DateWithTimeIntervalSinceReferenceDate Method (seconds)
NamespacesMonobjc.FoundationNSDateDateWithTimeIntervalSinceReferenceDate(Double)

Creates and returns an NSDate object set to a given number of seconds from the first instant of 1 January 2001, GMT.

Original signature is '+ (id)dateWithTimeIntervalSinceReferenceDate:(NSTimeInterval)seconds'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSDate DateWithTimeIntervalSinceReferenceDate(
	double seconds
)
Public Shared Function DateWithTimeIntervalSinceReferenceDate ( _
	seconds As Double _
) As NSDate
public:
static NSDate^ DateWithTimeIntervalSinceReferenceDate(
	double seconds
)
Parameters
seconds (Double)
The number of seconds from the absolute reference date (the first instant of 1 January 2001, GMT) for the new date. Use a negative argument to specify a date and time before the reference date.
Return Value
An NSDate object set to seconds seconds from the absolute reference date.
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)