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

959-partial Add fn:seconds function #984

Merged
merged 2 commits into from
Feb 6, 2024

Conversation

michaelhkay
Copy link
Contributor

@michaelhkay michaelhkay commented Jan 31, 2024

Issue: #959

@michaelhkay michaelhkay added the Tests Needed Tests need to be written or merged label Jan 31, 2024
@ChristianGruen ChristianGruen changed the title Add fn:seconds function 959-partial Add fn:seconds function Jan 31, 2024
Copy link
Contributor

@ChristianGruen ChristianGruen left a comment

Choose a reason for hiding this comment

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

Thanks. I removed Fix from the initial comment, as I think we should add an alternative solution for xs:dateTime('1970-01-01T00:00:00Z'). It’s particularly tricky because of the timestamp syntax, and people may be tempted to write things like…

xs:dateTime('1970-01-01T00:00:00') + seconds( (: input from 'date +%s' or similar :) )

…which gives a similar, but wrong result. fn:unix-time() would be my favorite (it seems more common to me than 'epoch', but I may be biased).

@michaelhkay michaelhkay added Tests Added Tests have been added to the test suites and removed Tests Needed Tests need to be written or merged labels Jan 31, 2024
@ndw
Copy link
Contributor

ndw commented Feb 6, 2024

The CG agreed to merge this issue at meeting 064

@ndw ndw merged commit ed3b9c1 into qt4cg:master Feb 6, 2024
2 checks passed
@michaelhkay michaelhkay added XQFO An issue related to Functions and Operators Completed PR has been applied, tests written and tagged, no further action needed labels Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Completed PR has been applied, tests written and tagged, no further action needed Tests Added Tests have been added to the test suites XQFO An issue related to Functions and Operators
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants