tarantool / tarantool/doc

feedback: Module datetime | Tarantool

Open
#4,506 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

add details datetime
Dominant language
CSS
Stars
15
Forks
49
Avg merge
1d 13h
Merged PRs (30d)
3

Description

<…>ber.

day
Day number.

month
Month number.

year
Year. Number.

|wday
Days since the beginning of the week. Number.|

yday
Days since the beginning of the year. Number.

timestamp
<…>

https://www.tarantool.io/en/doc/latest/reference/reference_lua/datetime/#datetime-totable

wday is in range [0, 6] and it is not clear what week day is encoded by 0.

tarantool> datetime.parse('16-09-2024', {format ='%d-%m-%Y'}).wday
---
- 2
...

tarantool> 

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the linked datetime-totable documentation and review the wday field alongside the datetime.parse example in the issue. Confirm which weekday is represented by 0, then update the documented range and meaning so the convention is unambiguous.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.