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

add aliases for date funcs #93

Merged
merged 2 commits into from
Jul 17, 2023
Merged

Conversation

baodrate
Copy link
Contributor

@baodrate baodrate commented Jul 7, 2023

For compatibility with jq, alias
todate -> todateiso8601
and
fromdate -> fromdateiso8601

closes #58

For compatibility with jq, alias
`todate` -> `todateiso8601`
and
`fromdate` -> `fromdateiso8601`

closes 01mf02#58
@baodrate
Copy link
Contributor Author

baodrate commented Jul 7, 2023

forgot these in the original PR (#85)

Some loss of precision when parsing ISO-8601 timestamp with fractional
seconds. Hopefully the test isn't too flaky
Comment on lines +132 to +134
# Date
def todate: todateiso8601;
def fromdate: fromdateiso8601;
Copy link
Owner

@01mf02 01mf02 Jul 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really like you how respect my "maximum overlap" formatting style. Thanks a lot for your care to detail!

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It shows that you have studied what was there, you understood the principle behind it, and that you have adapted to it so your addition fits in nicely. I cannot emphasise enough how I appreciate this mindset of yours.

@01mf02 01mf02 merged commit 147b70b into 01mf02:main Jul 17, 2023
1 check passed
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

Successfully merging this pull request may close these issues.

date parsing support?
2 participants