]> 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)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 16:16:18 +0000 (13:16 -0300)
commit121c9387602b64c34ac607a8d0bbfdbc0602c390
tree77a0657f39bcf09203bdde1fa26a7caa0d139621
parentb079e408bf0f8148a296d9b7ad6d6a7077778d11
[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