Skip to content

Commit 02135bd

Browse files
committed
docs(mods): add date-parts.md
1 parent a52e5b7 commit 02135bd

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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

0 commit comments

Comments
 (0)