Contents

fractional(_:)

Creates a custom format style representing the fractional seconds component of a date.

Declaration

static func fractional(_ val: Int) -> Date.FormatStyle.Symbol.SecondFraction

Parameters

  • val:

    Length of the string representation of the fractional seconds component.

Return Value

Returns the numerical representation of the fractional component of the second.

See Also

Modifying a Second Fraction