Ran
|
Jobs
1
|
Files
514
|
Run time
2min
|
Badge
Embed ▾
README BADGES
|
push
github
datetime: introduce tz in datetime.parse() There is an option tz in `datetime.parse()`, it was added in commit 3c40366172e3 ("datetime, lua: date parsing functions"). The option is not documented, and the commit message says that option `tz` is "Not yet implemented in this commit.". The patch added tests and a doc request for this option. The behaviour of the option `tz` is the same as with option `tzoffset`: - if timezone was not set in a parsed string then it is set to a value specified by `tz` - if timezone was set in a parsed string then option `tz` is ignored ``` tarantool> date.parse("1970-01-01T01:00:00 MSK", { tz = 'Europe/Paris' }) --- - 1970-01-01T01:00:00 MSK - 23 ... tarantool> date.parse("1970-01-01T01:00:00", { tz = 'Europe/Paris' }) --- - 1970-01-01T01:00:00 Europe/Paris - 19 ... ``` Follows up #6731 Fixes #10420 @TarantoolBot document Title: Introduce option `tz` in `datetime.parse()` The option `tz` is added in a function `datetime.parse()`. The option set timezone to a passed value if it was not set in a parsed string. (cherry picked from commit c6bab23a6)
68398 of 121663 branches covered (56.22%)
101029 of 115822 relevant lines covered (87.23%)
2456300.97 hits per line
Lines | Coverage | ∆ | File |
---|---|---|---|
1 |
87.87 |
0.21% | src/box/vy_run.c |
1 |
95.84 |
-0.05% | src/box/iproto.cc |
1 |
87.5 |
-1.59% | src/box/xlog.h |
1 |
95.74 |
-0.53% | src/box/vy_range.c |
2 |
87.02 |
-0.54% | src/box/vy_stmt.c |
2 |
93.01 |
-0.12% | src/lib/core/fiber.c |
2 |
90.77 |
-0.03% | src/box/box.cc |
2 |
85.71 |
-9.52% | src/lib/core/tt_sigaction.c |
3 |
22.64 |
-0.04% | src/lib/uri/uri_parser.c |
4 |
91.98 |
-0.09% | src/box/vinyl.c |
6 |
83.81 |
-0.53% | src/box/xlog.c |
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | 10923546742.1 | 514 |
87.23 |
GitHub Action Run |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
---|