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

Implement support for month #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Spiralis
Copy link
Contributor

@bretcope: This PR is almost (but only almost) feature complete.

One of the tests I have added are failing. The test that fails is when I start mixing month() dow() hour() min() and sec(), like e.g. this:

f: month(sep) dow(mon) hour(22) min(22) sec(22)
d: 2015-10-10 
p: 2015-09-28 22:22:22
n: 2016-09-05 22:22:22

BTW: Might be that the hour/min/sec part isn't needed. Maybe month() dow() triggers this on its own.

The error manifests like this:

Previous time was incorrect.
String lengths are both 33. Strings differ at index 3.
Expected: "2015-09-28T22:22:22.0000000+00:00"
But was:  "2014-09-01T22:22:22.0000000+00:00"
--------------^

I think this is related to code in the IrBuilder.CompileGroup() method, but I am having problems seeing a fix. Maybe you can assist on this?

- Whitespace for changed code was with tabs, should be with spaces.
- Also added the compiled test.json result from the base Schybtax
project that contains the new tests for dayOfYear.
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.

1 participant