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

Provide a dateTimeNow expression? #6

Open
jitenderaswani opened this issue Jul 29, 2015 · 0 comments
Open

Provide a dateTimeNow expression? #6

jitenderaswani opened this issue Jul 29, 2015 · 0 comments

Comments

@jitenderaswani
Copy link
Contributor

I am taking a long route to get dateTimeNow expression
val dt = DateTime.now()
val fmt = DateTimeFormat.forPattern("yyyy-MM-dd HH:mm:ss")
val endDate = fmt.print(dt)
val period = dateTime(endDate) - 30.day to dateTime(endDate)

Would be awesome to compress this to:
val period = dateTimeNow() - 30.day to dateTimeNow()

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