Date
public extension Date
extension Date: ScopeFunctions
-
Returns the second component.
Declaration
Swift
var second: Int { get }
-
Returns the minute component.
Declaration
Swift
var minute: Int { get }
-
Returns the hour component.
Declaration
Swift
var hour: Int { get }
-
Returns the day component.
Declaration
Swift
var day: Int { get }
-
Returns the month component.
Declaration
Swift
var month: Int { get }
-
Returns the year component.
Declaration
Swift
var year: Int { get }
-
Returns a date representing the start of the day.
Declaration
Swift
var startOfDay: Date { get }
-
Returns a date representing the end of the day.
Declaration
Swift
var endOfDay: Date? { get }
-
Returns a date representing the start of the week.
Declaration
Swift
var startOfWeek: Date? { get }
-
Returns a date representing the end of the week.
Declaration
Swift
var endOfWeek: Date? { get }
-
Returns a date representing the start of the month.
Declaration
Swift
var startOfMonth: Date? { get }
-
Returns a date representing the end of the month.
Declaration
Swift
var endOfMonth: Date? { get }
-
Returns a date representing the start of the month.
Declaration
Swift
var startOfYear: Date? { get }
-
Returns a date representing the end of the month.
Declaration
Swift
var endOfYear: Date? { get }