Date
extension Date: ScalarConstructible
extension Date: ScalarRepresentable
extension Date: YAMLEncodable
-
Construct an instance of
Date, if possible, from the specified scalar.Declaration
Swift
public static func construct(from scalar: Node.Scalar) -> Date?Parameters
scalarThe
Node.Scalarfrom which to extract a value of typeDate, if possible.Return Value
An instance of
Date, if one was successfully extracted from the scalar.
-
This value’s
Node.scalarrepresentation.Declaration
Swift
public func represented() -> Node.Scalar
-
Returns this value wrapped in a
Node.scalar.Declaration
Swift
public func box() -> Node
View on GitHub
Install in Dash