DateTimeProvider
public protocol DateTimeProvider
Provide initial information about date and time
-
Day of the date
Declaration
Swift
var day: Int { get }
-
Month of the date
Declaration
Swift
var month: Int { get }
-
Year of the date
Declaration
Swift
var year: Int { get }
-
Houre of the date
Declaration
Swift
var hour: Int { get }
-
Minute of the date
Declaration
Swift
var minute: Int { get }
-
Second of the date
Declaration
Swift
var second: Int { get }
-
TimeZone information of the date
Declaration
Swift
var timezone: TimeZone { get }
-
Local information of the date
Declaration
Swift
var locale: Locale { get }
-
Calendar information of the date
Declaration
Swift
var calendar: Calendar { get }