Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decoding timestamp as date #266

Open
mbarnach opened this issue Jul 29, 2020 · 0 comments
Open

Decoding timestamp as date #266

mbarnach opened this issue Jul 29, 2020 · 0 comments

Comments

@mbarnach
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant