Build a PrecisionDate from what a source actually gives us.
Pass date and time separately whenever the source has them separately — LightningStep stores
them in two columns — because an absent time states date-only precision outright instead of
leaving it to be inferred. value covers the single-string case and is classified by which
format list it matches.
knownZone is the zone a zoneless value is in, when the caller knows; a value carrying its own
offset ignores it.
Returns null only when there was nothing to parse. Input that matched no format comes back with
"bare" precision and renders verbatim, so a value the source gave us is never dropped on the
floor.
Build a PrecisionDate from what a source actually gives us.
Pass
dateandtimeseparately whenever the source has them separately — LightningStep stores them in two columns — because an absenttimestates date-only precision outright instead of leaving it to be inferred.valuecovers the single-string case and is classified by which format list it matches.knownZoneis the zone a zoneless value is in, when the caller knows; a value carrying its own offset ignores it.Returns
nullonly when there was nothing to parse. Input that matched no format comes back with"bare"precision and renders verbatim, so a value the source gave us is never dropped on the floor.