-
When I use
Presumably because there is ambiguity whether this is 1634 or 2034. How can I add information that this is always 2000's – ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
So it's not quite as simple as it could be, admittedly. I need to add a method that would permit easier manual control over values. For now, you'll have to go through the |
Beta Was this translation helpful? Give feedback.
So it's not quite as simple as it could be, admittedly. I need to add a method that would permit easier manual control over values.
For now, you'll have to go through the
Parsed
struct yourself. You can do this by usingParsed::parse_items
, which returns the rawParsed
instead of the final value. You can then modify this (in your cast using.year_last_two()
and.set_year()
/.with_year()
. Once you've done that, you can call.try_into()
orOffsetDateTime::try_from(val)
.