-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
accept date and time as string in ISO 8601 format for ChronoZonedDateTime #482
Comments
introduce typealias CharSequenceOrNumberOrChar for Any move CharSequenceOrNumberOrChar to domain-api and use in domain-impl update setup instructions for the new infix API include the new infix API to be published preparation for accepting String instead of Zoned/LocalDate(Time) object preparation for robstoll#480, robstoll#481 and robstoll#482 refer to current milestone in good_first_issue template fix link for nullableContainer return empty message in case callee is org.spekframework.ide reduce code duplication also for jvm specs, add more cases to PathSpec fix wrong replacements and workaround KT-38721 (add import next to star) api-fluent work done commiting requested changes updated with comments adding problematic classes which break the build adding problemtic code to server to reproduce error reproducing problematic build on CI fix to build problem addressing latest comment, build should pass adjust the pseudo-keyword from exist to existing moved infix jdk8 extension to jvm module rebasing
introduce typealias CharSequenceOrNumberOrChar for Any move CharSequenceOrNumberOrChar to domain-api and use in domain-impl update setup instructions for the new infix API include the new infix API to be published preparation for accepting String instead of Zoned/LocalDate(Time) object preparation for robstoll#480, robstoll#481 and robstoll#482 refer to current milestone in good_first_issue template fix link for nullableContainer return empty message in case callee is org.spekframework.ide reduce code duplication also for jvm specs, add more cases to PathSpec fix wrong replacements and workaround KT-38721 (add import next to star) api-fluent work done commiting requested changes updated with comments adding problematic classes which break the build adding problemtic code to server to reproduce error reproducing problematic build on CI fix to build problem addressing latest comment, build should pass adjust the pseudo-keyword from exist to existing moved infix jdk8 extension to jvm module rebasing
* build windows also against JDK 11 introduce typealias CharSequenceOrNumberOrChar for Any move CharSequenceOrNumberOrChar to domain-api and use in domain-impl update setup instructions for the new infix API include the new infix API to be published preparation for accepting String instead of Zoned/LocalDate(Time) object preparation for #480, #481 and #482 refer to current milestone in good_first_issue template fix link for nullableContainer return empty message in case callee is org.spekframework.ide reduce code duplication also for jvm specs, add more cases to PathSpec fix wrong replacements and workaround KT-38721 (add import next to star) api-fluent work done commiting requested changes updated with comments adding problematic classes which break the build adding problemtic code to server to reproduce error reproducing problematic build on CI fix to build problem addressing latest comment, build should pass adjust the pseudo-keyword from exist to existing moved infix jdk8 extension to jvm module rebasing * added file deprecation suppress message + removed niok and kbox references * resolving comments in re
You can assign me this one :-) |
Sure 🙂👍 |
I didn't get the mail, because I haven't updated my Profile Email in a long time. If you don't mind, can you send the invitation again? Thank you 🙂 |
@Valefant I have re-sent it yesterday, did you get it? Forget it, I just saw that you have accepted the invitation. |
@Valefant do you need help with this one? No stress, I just want to offer my help |
@khliwa feel free to start, in the worst case you both do the same and you can compare the two solutions |
…toll#482-accept-date-as-string-for-chronozoneddatetime
…toll#482-accept-date-as-string-for-chronozoneddatetime
This issue can be closed as the pull request was accepted |
# This is the 1st commit message: robstoll#630 add Path.isRelative method # This is the commit message robstoll#2: robstoll#482 accept date as string for chronozoneddatetime (robstoll#625)
# This is the 1st commit message: robstoll#630 add Path.isRelative method # This is the commit message robstoll#2: robstoll#482 accept date as string for chronozoneddatetime (robstoll#625)
Platform (jvm, js, android): jvm
Extension (none, kotlin 1.3, jdk8): jdk8
Code related feature
Following the things you need to do:
atrium-logic:
accept a String instead of a ChronoZonedDateTime and parse it to ZonedDateTime and pass it to the existing overload where the following formats shall be supported. This is a slight deviation of ISO 8601, e.g. we do not want to support the alternative notation e.g. 20200401120001Z instead of 2020-04-01T12:00:01Z
The format is composed of {DateTime}{ZoneDesignator}, first the spec for DateTime:
And for ZoneDesignator:
Following a few examples how it looks combined:
Right now we don't intend to support things like Europe/Zurich as ZoneDesignators (would be supported by jdk). So do a check upfront if in correct format and throw a DateTimeParseException if wrong and only then use ZonedDateTime.parse
Note that accept date and time as string in ISO 8601 format for ChronoLocalDateTime #481 deals also with parsing DateTime. You should reuse the logic from there.
api-fluent
describe("allowed shortcuts")
with at least the following test cases:api-infix
Your first contribution?
I'll work on this
if you would like to take this issue over.This way we get the chance to revise the description in case things have changed in the meantime, we might give you additional hints and we can assign the task to you, so that others do not start as well.
(Invite yourself in case you do not have an account yet).
Hint
Have a look at the following PR for ChronoLocalDateTime:
https://github.com/robstoll/atrium/pull/556/files
The text was updated successfully, but these errors were encountered: