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

Convert datetimeV2 results to date, date-time, time or duration formats #3063

Open
chrimc62 opened this issue Feb 3, 2021 · 0 comments
Open
Assignees
Labels
feature-request A request for new functionality or an enhancement to an existing one. generated Generated dialogs related issues

Comments

@chrimc62
Copy link
Contributor

chrimc62 commented Feb 3, 2021

The specific JSON schema formats are in a particular format and we need to add the logic to validate and convert datetimeV2 into those forms.
Date: "$comment": "TODO: We need to convert to YYYY-MM-DD https://tools.ietf.org/html/rfc3339#appendix-A",
"Dec 24th, 2012" -> 2012-12-24

Date-time: "$comment": "TODO: We need to convert to YYYY-MM-DDTHH:MM:SS[.FS] https://tools.ietf.org/html/rfc3339#appendix-A",
"Dec 24th, 2012 at 4pm" -> 2012-12-24T04:00:00

duration: "$comment": "TODO: We need to convert to P[nY][nM][nD][T[nH][nM][nS]]
"4 hours" => P4H

time: https://tools.ietf.org/html/rfc3339#appendix-A",
HH:MM:SS[.FS][Z|+offset|-offset]

@chrimc62 chrimc62 added generated Generated dialogs related issues feature-request A request for new functionality or an enhancement to an existing one. labels Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A request for new functionality or an enhancement to an existing one. generated Generated dialogs related issues
Projects
None yet
Development

No branches or pull requests

2 participants