Skip to content

Type MethodFoundationInternationalization

fractional(_:)

iOS 15.0+ iPadOS 15.0+ Mac Catalyst 15.0+ macOS 12.0+ tvOS 15.0+ watchOS 8.0+
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 fractional(_ val: Int) -> Date.FormatStyle.Symbol.SecondFraction