SecondFraction
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
struct SecondFraction
struct SecondFraction
s20FoundationEssentials4DateV0A20InternationalizationE11FormatStyleV6SymbolV14SecondFractionV
What are these?6WYZL
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 Day
struct DayOfYear
struct DayPeriod
struct Era
struct Hour
struct Minute
struct Month
struct Quarter
struct Second
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 let omitted: Date.FormatStyle.Symbol.SecondFraction
The option for not including the symbol in the formatted output.
static func fractional(_ val: Int) -> Date.FormatStyle.Symbol.SecondFraction
Fractional second (numeric). Truncates, like other numeric time fields, but in this case to the number of digits specified by the associated Int
. For example, specifying 4
for seconds value 12.34567
yields 12.3456
.
static func milliseconds(_ val: Int) -> Date.FormatStyle.Symbol.SecondFraction
Milliseconds in day (numeric). The associated Int
specifies the minimum number of digits, with zero-padding as necessary. The maximum number of digits is 9. This field behaves exactly like a composite of all time-related fields, not including the zone fields. As such, it also reflects discontinuities of those fields on DST transition days. On a day of DST onset, it will jump forward. On a day of DST cessation, it will jump backward. This reflects the fact that is must be combined with the offset field to obtain a unique local time value.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.