Skip to content

feedback: Module datetime | Tarantool #4506

Open
@TarantoolBot

Description

@TarantoolBot

<…>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> 

Metadata

Metadata

Assignees

No one assigned

    Labels

    add details[nature] More details needed, some info missing. Documentation is incomplete.datetime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions