-
Notifications
You must be signed in to change notification settings - Fork 73
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
feat: date generator functions #3327
Conversation
@@ -171,6 +171,7 @@ require ( | |||
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect | |||
github.com/xeipuuv/gojsonschema v1.2.0 // indirect | |||
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect | |||
gitlab.com/metakeule/fmtdate v1.2.2 // indirect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This library uses the time.Format
function to format dates but it allows us to use the W3C format instead of go's magic numbers:
DD/MM/YYYY
instead of 02/01/2006
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some editing suggestions.
Co-authored-by: Julianne Fermi <[email protected]>
Co-authored-by: Julianne Fermi <[email protected]>
Co-authored-by: Julianne Fermi <[email protected]>
Co-authored-by: Julianne Fermi <[email protected]>
This PR adds support for two new generator functions:
date()
anddateTime()
.Motivation
This was asked by a user in our discord channel
About the functions
Examples
Checklist
Loom video
Add your loom video here if your work can be visualized