DayOfYear
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
struct DayOfYear
struct DayOfYear
s20FoundationEssentials4DateV0A20InternationalizationE11FormatStyleV6SymbolV9DayOfYearV
What are these?7WF27
import FoundationInternationalization
import FoundationEssentials
struct Symbol
struct Date
Date
represents a single point in time.
struct FormatStyle
Strategies for formatting a Date
.
struct CyclicYear
struct Day
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.DayOfYear { get }
Minimum number of digits that shows the full numeric day of year. For example, 7
, 33
, 345
.
static let omitted: Date.FormatStyle.Symbol.DayOfYear
The option for not including the symbol in the formatted output.
static var threeDigits: Date.FormatStyle.Symbol.DayOfYear { get }
Three-digit day of year, with zero-padding as necessary. For example, 007
, 033
, 345
.
static var twoDigits: Date.FormatStyle.Symbol.DayOfYear { get }
Two-digit day of year, with zero-padding as necessary. For example, 07
, 33
, 345
.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.