File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ title : " Date Parts"
3+ description : " Structure and fields of the DateParts table used by mods.date."
4+ ---
5+
6+ # Date Parts
7+
8+ Components of a date and time, used by the [ ` date ` ] module.
9+
10+ | Field | Type | Description |
11+ | :------ | :--------- | :----------------------------------------------------------------- |
12+ | ` year ` | ` integer ` | The 4-digit year (e.g., ` 2026 ` ). |
13+ | ` month ` | ` integer? ` | The month of the year (` 1 ` to ` 12 ` ). |
14+ | ` day ` | ` integer? ` | The day of the month (` 1 ` to ` 31 ` ). |
15+ | ` hour ` | ` integer? ` | The hour of the day (` 0 ` to ` 23 ` ). |
16+ | ` min ` | ` integer? ` | The minute of the hour (` 0 ` to ` 59 ` ). |
17+ | ` sec ` | ` integer? ` | The second of the minute (` 0 ` to ` 59 ` ). |
18+ | ` ms ` | ` integer? ` | The millisecond of the second (` 0 ` to ` 999 ` ). |
19+ | ` wday ` | ` integer? ` | The weekday number (typically ` 1 ` to ` 7 ` where Sunday is ` 1 ` ). |
20+ | ` yday ` | ` integer? ` | The day of the year (` 1 ` to ` 366 ` ). |
21+ | ` isdst ` | ` boolean? ` | ` true ` if Daylight Saving Time (DST) is active, ` false ` otherwise. |
22+
23+ [ `date` ] : ../api/date.md
You can’t perform that action at this time.
0 commit comments