StatusDateFormatter
public class StatusDateFormatter
Struct that encapsulates a DateFormatter implementation, specifically used by the Status struct.
-
Returns a timestamp string representation from the
Dateparameter.Declaration
Swift
public func string(from date: Date) -> StringParameters
fromA Date instance to obtain the date value from.
-
Returns a
Dateinstance that corresponds to the string parameter.Declaration
Swift
public func date(from string: String) -> Date?Parameters
fromA string in the
yyyy-MM-dd’T'HH:mm:ssZ
format.
View on GitHub
StatusDateFormatter Class Reference