Date
public extension Date
-
The Julian Day of the date.
Declaration
Swift
var julianDay: JulianDay { get } -
The year component of the date.
Declaration
Swift
var year: Int { get } -
The month component of the date
Declaration
Swift
var month: Int { get } -
The dat component of the date.
Declaration
Swift
var day: Int { get } -
The hour component of the date.
Declaration
Swift
var hour: Int { get } -
The fractional hour of the date
Declaration
Swift
var fractionalHour: Double { get } -
The minute component of the date.
Declaration
Swift
var minute: Int { get } -
The second component of the date.
Declaration
Swift
var second: Int { get } -
The remainder of the date, in nanoseconds.
Declaration
Swift
var nanosecond: Int { get } -
Returns whether the date is in a leap year or not.
Declaration
Swift
var isLeap: Bool { get } -
Returns a new date corresponding the 1st of January of the same year.
Declaration
Swift
func januaryFirstDate() -> DateReturn Value
A new date object.
-
The fractional year corresponding of the date.
Declaration
Swift
var fractionalYear: Double { get } -
Returns the number of integral days since January 1st, 2000.
Declaration
Swift
func daysSince2000January1() -> IntReturn Value
The number of integral days since January 1st, 2000.
View on GitHub
Install in Dash
Date Extension Reference