diff options
author | luxaeterna <luxaeterna@yandex-team.ru> | 2022-02-10 16:50:13 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:13 +0300 |
commit | 2c76d348a3be51f0875ddeaad6b2ccda604dee0f (patch) | |
tree | 054cd500011b8b97634220fc570d32a1d45fcc35 /util/datetime/parser.rl6 | |
parent | 9f848110233b3807d5dd3ae5479b3957d791892c (diff) | |
download | ydb-2c76d348a3be51f0875ddeaad6b2ccda604dee0f.tar.gz |
Restoring authorship annotation for <luxaeterna@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/datetime/parser.rl6')
-rw-r--r-- | util/datetime/parser.rl6 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/datetime/parser.rl6 b/util/datetime/parser.rl6 index 931f09eae1..f36b6de219 100644 --- a/util/datetime/parser.rl6 +++ b/util/datetime/parser.rl6 @@ -206,14 +206,14 @@ secondFrac = digit {1,6} >clear_int $update_int @{ } DateTimeFields.MicroSecond = us; }; -secondFracTail = (digit*); +secondFracTail = (digit*); zoneZ = [Zz] @set_zone_utc; zoneOffset = space? . ('+' | '-') >{ Sign = fc == '+' ? 1 : -1; } . int2 @{ DateTimeFields.ZoneOffsetMinutes = Sign * (i32)TDuration::Hours(I).Minutes(); } . (':')? . (int2 @{ DateTimeFields.ZoneOffsetMinutes += I * Sign; })?; zone = zoneZ | zoneOffset; iso8601date = (year . '-' . month . '-' . day) | (year . month . day); -iso8601time = (hour . ':' . minute . (':' . second ('.' secondFrac secondFracTail)?)?) | (hour . minute . second?); +iso8601time = (hour . ':' . minute . (':' . second ('.' secondFrac secondFracTail)?)?) | (hour . minute . second?); iso8601datetime = iso8601date . ([Tt ] . iso8601time . zone?)?; |