DateComponents
public extension DateComponents
This extension provides the reverse of asXMLDuration.
You can have an instance of DateComponents express itself as a legal, optimized xs:duration String.
-
This calculated property will return a properly-formatted xsd:duration String, based upon the current state of this DateComponents instance.
Declaration
Swift
var asXMLDuration: String! { get }
Return Value
A String, if the parse was successful. Nil, if not.