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

Parsing of Relative Dates #1

Open
13 of 15 tasks
dainiusjocas opened this issue Dec 9, 2016 · 6 comments
Open
13 of 15 tasks

Parsing of Relative Dates #1

dainiusjocas opened this issue Dec 9, 2016 · 6 comments

Comments

@dainiusjocas
Copy link
Contributor

dainiusjocas commented Dec 9, 2016

String like

  • yesterday,
  • tomorrow,
  • 10 minutes from now,
  • 2 weeks ago,
  • 10 minutes ago, etc.,
  • last June,
  • next June,
  • last Friday,
  • this Friday,
  • Monday,
  • next Friday,
  • in January,
  • last Monday, 5pm,
  • last spring, last summer, last autumn, last fall, last winter.
  • take a look here https://www.speaklanguages.com/english/phrases/time-expressions
@dainiusjocas
Copy link
Contributor Author

10 minutes ago fixed in 0.1.2

@dainiusjocas
Copy link
Contributor Author

There is a problem using the clj-time.core/seconds function when in the context there is clj-time pre 0.6.0 version used (e.g. when deployed to Storm 0.9.6). As of now the solution is to compute seconds using milliseconds.

@dainiusjocas
Copy link
Contributor Author

10 minutes from now fixed in 0.1.6.

@dainiusjocas
Copy link
Contributor Author

last friday fixed in 0.1.7

@dainiusjocas
Copy link
Contributor Author

Last spring

@dainiusjocas
Copy link
Contributor Author

All the relative dates should return start of the mentioned time period, i.e. last November means 2000-11-01T00:00:00Z

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