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

Subtracting a month does not work #30

Closed
BorzdeG opened this issue Jan 6, 2020 · 0 comments
Closed

Subtracting a month does not work #30

BorzdeG opened this issue Jan 6, 2020 · 0 comments

Comments

@BorzdeG
Copy link

BorzdeG commented Jan 6, 2020

fun main() {
	val n = Dates.today
	println(n)
	println(n - 1.month)
	println(1.month.ago)
	println(n - 1.day)
	println(1.day.ago)
	println(1.week.ago)
}

output:

Mon Jan 06 14:13:28 MSK 2020
Mon Jan 06 14:13:28 MSK 2020 // expect December 2019
Mon Jan 06 14:13:29 MSK 2020 // expect December 2019
Sun Jan 05 14:13:28 MSK 2020
Sun Jan 05 14:13:29 MSK 2020
Sun Dec 30 14:13:29 MSK 2020

khronos version: 0.9.0
JVM: 1.8
Kotlin: 1.3.61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants