MonobjcMonobjc Documented Class Library
DateWithTimeIntervalSince1970 Method (seconds)
NamespacesMonobjc.FoundationNSDateDateWithTimeIntervalSince1970(Double)

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

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

Available in Mac OS X v10.0 and later.

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