Yams
Yams copied to clipboard
Decoding timestamp as date
When decoding a YAML file, I have a date stored as as a timestamp.
The structure in Swift is a Foundation Date type.
How can I decode the timestamp in a date, and not get the error: Expected Date value but found Scalar(string: \"1591781962\", tag: , style: Yams.Node.Scalar.Style.plain, mark: Optional(7:12)) instead."?
Thanks.