• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / tarantool / 10923548804
86%
master: 88%

Build:
Build:
LAST BUILD BRANCH: backport/release/3.3/12142
DEFAULT BRANCH: master
Ran 18 Sep 2024 02:26PM UTC
Jobs 1
Files 479
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Sep 2024 01:49PM UTC coverage: 85.943% (+0.02%) from 85.928%
10923548804

push

github

Buristan
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)

63049 of 114311 branches covered (55.16%)

93945 of 109311 relevant lines covered (85.94%)

3415337.64 hits per line

Jobs
ID Job ID Ran Files Coverage
1 10923548804.1 18 Sep 2024 02:26PM UTC 0
85.94
GitHub Action Run
Source Files on build 10923548804
Detailed source file information is not available for this build.
  • Back to Repo
  • c42b850d on github
  • Prev Build on release/2.11 (#10921311953)
  • Next Build on release/2.11 (#10958830009)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc