Yams icon indicating copy to clipboard operation
Yams copied to clipboard

Decoding timestamp as date

Open mbarnach opened this issue 5 years ago • 0 comments

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.

mbarnach avatar Jul 29 '20 07:07 mbarnach