Good evening, afternoon or whatever part of day yo...
# kotlinx-datetime
o
Good evening, afternoon or whatever part of day you have at your current location. I added the ability for parsing
+-hh:mm
time zone offsets to
Instant.parse
. https://github.com/Kotlin/kotlinx-datetime/pull/106
Instant.parse now supports:
Time zone offsets in the form of +-hh:mm
Time part allows the omission of colons (allows hhmmss)
Time part allows the omission of seconds
Implementation notes:
Input string is split by the time delimiter (T|t) into date and time parts.
Date parsing is delegated to LocalDate.parse
Time parsing employs the well known algorithm from Iso8601Utils.java
originally implemented in Jackson. This commit is based on Moshi's
version of that file.
I invite you to take part in the PR discussion. And do not hold back in your reviews.
👍 1