khronos icon indicating copy to clipboard operation
khronos copied to clipboard

Avoid using shared calendar

Open hotchemi opened this issue 8 years ago • 5 comments

hotchemi avatar Mar 24 '16 08:03 hotchemi

Yeah, this is interesting -- I almost think you need to do a separate library to make this (and timezones) work, because everything will have to use java.time classes like LocalDate instead of the older java.util classes. Important, though, because of lack of thread safety.

MrTact avatar May 11 '17 04:05 MrTact

@MrTact Thx for your interest. Yeah actually I've been thinking the same thing. Are you interested in working on it?

hotchemi avatar May 11 '17 04:05 hotchemi

I am! I actually thought about doing something like this, and then realized that someone surely must have done it already.

Then I pulled khronos, thinking "I'll just see if I can add a couple of timezone-related extensions (e.g. "2017-05-10".utc), and then realized that was going to take a lot more work than I anticipated.

MrTact avatar May 11 '17 04:05 MrTact

then realized that someone surely must have done it already.

Oh do you mean it's already fixed?

hotchemi avatar May 11 '17 07:05 hotchemi

No, I meant I was thinking about creating a library that used some of Kotlin's cooler features to create a DSL-like wrapper around Java date & time modules. Then I thought someone must have done this already, and someone did -- you :-)

As far as I have been able to find, no one has done a comparable library wrapping LocalDateTime.

MrTact avatar May 13 '17 07:05 MrTact