]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Time_IO.Value: Allow subseconds and time zones together
authorBob Duff <duff@adacore.com>
Sun, 10 May 2020 00:23:58 +0000 (20:23 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 6 Jul 2020 11:35:32 +0000 (07:35 -0400)
commitd868231706cf9a43ce1d6b474e8c1aa1535c4736
tree3da16dd0f2f206e14e7e7ec3be8b2f94883304a8
parentbf8467d8069a4cd91a1071431200926186235f1c
[Ada] Time_IO.Value: Allow subseconds and time zones together

gcc/ada/

* libgnat/g-catiio.ads: Change the regular expression that
documents the allowed format to match what ISO-8601 allows.
* libgnat/g-catiio.adb (Scan_Subsecond): Rewrite so it doesn't
assume the subsecond comes last.
(Parse_ISO_8601): Parse an optional subsecond, followed by an
optional time zone, rather than making these alternatives to
each other.
gcc/ada/libgnat/g-catiio.adb
gcc/ada/libgnat/g-catiio.ads