File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ public actual class Instant internal constructor(internal val value: jtInstant)
73
73
if (epochMilliseconds > 0 ) MAX else MIN
74
74
}
75
75
76
+ // TODO: implement a custom parser to 1) help DCE get rid of the formatting machinery 2) move Instant to stdlib
76
77
public actual fun parse (input : CharSequence , format : DateTimeFormat <DateTimeComponents >): Instant = try {
77
78
// This format is not supported properly by Joda-Time, so we can't delegate to it.
78
79
format.parse(input).toInstantUsingOffset()
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ public actual class Instant internal constructor(internal val value: jtInstant)
65
65
public actual fun fromEpochMilliseconds (epochMilliseconds : Long ): Instant =
66
66
Instant (jtInstant.ofEpochMilli(epochMilliseconds))
67
67
68
+ // TODO: implement a custom parser to 1) help DCE get rid of the formatting machinery 2) move Instant to stdlib
68
69
public actual fun parse (input : CharSequence , format : DateTimeFormat <DateTimeComponents >): Instant = try {
69
70
/* *
70
71
* Can't use built-in Java Time's handling of `Instant.parse` because it supports 24:00:00 and
You can’t perform that action at this time.
0 commit comments