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 getdate as in Python port #28

Open
wilsonfreitas opened this issue Jun 9, 2015 · 3 comments
Open

implement getdate as in Python port #28

wilsonfreitas opened this issue Jun 9, 2015 · 3 comments

Comments

@wilsonfreitas
Copy link
Owner

See https://github.com/mojombo/chronic for inspiration.

@wilsonfreitas
Copy link
Owner Author

This is useful for things like

getdate("last bizday", "Brazil/ANBIMA")

@wilsonfreitas
Copy link
Owner Author

Day reference can be used with the following specs:

  • next <day>: day, bizday, weekday
  • last <day>: day, bizday, weekday

with an argument to include the reference date or not.

@wilsonfreitas
Copy link
Owner Author

For a ref by_day we can use expr like

  • next <day>: day, bizday, weekday
  • first <day>: day, bizday, weekday
  • 1st/2nd/3rd/nth <day>: day, bizday, weekday

for forward dates, and

  • last <day>: day, bizday, weekday

for backward dates.

I need an expression to go further backward. Maybe something like

  • last nth <day>: day, bizday, weekday
  • nth <day> before/ago: day, bizday, weekday

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

No branches or pull requests

1 participant