From ede9ed3759dca74359124626a6ccfe7fd217612f Mon Sep 17 00:00:00 2001 From: Tristan Swadell Date: Wed, 16 Oct 2024 17:20:26 -0700 Subject: [PATCH] Update the getDate and getDayOfMonth examples (#399) --- doc/langdef.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/langdef.md b/doc/langdef.md index 9f6eb4d..a0925aa 100644 --- a/doc/langdef.md +++ b/doc/langdef.md @@ -1840,8 +1840,8 @@ either using the numeric format or the geographic region. **Examples:** ``` -timestamp("2023-12-25T12:00:00Z").getDate() // 25 -timestamp("2023-12-25T12:00:00Z").getDate("America/Los_Angeles") // 24 +timestamp("2023-12-25T00:00:00Z").getDate() // 25 +timestamp("2023-12-25T00:00:00Z").getDate("America/Los_Angeles") // 24 ``` **getDayOfMonth** \- Get the day of the month from a timestamp (zero-based @@ -1855,8 +1855,8 @@ indexing). **Examples:** ``` -timestamp("2023-12-25T12:00:00Z").getDayOfMonth() // 24 -timestamp("2023-12-25T12:00:00Z").getDayOfMonth("America/Los_Angeles") // 23 +timestamp("2023-12-25T00:00:00Z").getDayOfMonth() // 24 +timestamp("2023-12-25T00:00:00Z").getDayOfMonth("America/Los_Angeles") // 23 ``` **getDayOfWeek** \- Get the day of the week from a timestamp (zero-based, zero