StatusDateFormatter

public class StatusDateFormatter

Struct that encapsulates a DateFormatter implementation, specifically used by the Status struct.

  • Returns a timestamp string representation from the Date parameter.

    Declaration

    Swift

    public func string(from date: Date) -> String

    Parameters

    from

    A Date instance to obtain the date value from.

  • Returns a Date instance that corresponds to the string parameter.

    Declaration

    Swift

    public func date(from string: String) -> Date?

    Parameters

    from

    A string in the “yyyy-MM-dd’T'HH:mm:ssZ” format.