Day
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
struct Day
struct Day
s20FoundationEssentials4DateV0A20InternationalizationE11FormatStyleV6SymbolV3DayV
What are these?100SJ
import FoundationEssentials
import FoundationInternationalization
struct Symbol
struct Date
Date
represents a single point in time.
struct FormatStyle
Strategies for formatting a Date
.
struct CyclicYear
struct DayOfYear
struct DayPeriod
struct Era
struct Hour
struct Minute
struct Month
struct Quarter
struct Second
struct SecondFraction
struct StandaloneMonth
struct StandaloneQuarter
struct StandaloneWeekday
struct TimeZone
struct VerbatimHour
struct Week
struct Weekday
struct Year
struct YearForWeekOfYear
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
static var defaultDigits: Date.FormatStyle.Symbol.Day { get }
Minimum number of digits that shows the full numeric day of month. For example, 1
, 18
.
static let omitted: Date.FormatStyle.Symbol.Day
The option for not including the symbol in the formatted output.
static var ordinalOfDayInMonth: Date.FormatStyle.Symbol.Day { get }
Ordinal of day in month. For example, the 2nd Wed in July would yield 2
.
static var twoDigits: Date.FormatStyle.Symbol.Day { get }
Two-digit, zero-padded if necessary. For example, 01
, 18
.
static func julianModified(minimumLength: Int = 1) -> Date.FormatStyle.Symbol.Day
The field length specifies the minimum number of digits, with zero-padding as necessary. This is different from the conventional Julian day number in two regards. First, it demarcates days at local zone midnight, rather than noon GMT. Second, it is a local number; that is, it depends on the local time zone. It can be thought of as a single number that encompasses all the date-related fields. For example, 2451334
.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.