Skip to content

Commit a34eab9

Browse files
committed
Add documentation for timestamp timezone missing
1 parent 678ecd1 commit a34eab9

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

handwritten/firestore/dev/src/pipelines/expression.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2494,6 +2494,7 @@ export abstract class Expression
24942494
* @param part - The part to extract from the timestamp (e.g., "year", "month", "day").
24952495
* @param timezone - The timezone to use for extraction. Valid values are from
24962496
* the TZ database (e.g., "America/Los_Angeles") or in the format "Etc/GMT-1."
2497+
* Defaults to "UTC" if not specified.
24972498
* @returns A new `Expression` representing the extracted part as an integer.
24982499
*/
24992500
timestampExtract(
@@ -2514,6 +2515,7 @@ export abstract class Expression
25142515
* @param part - The expression evaluating to the part to extract.
25152516
* @param timezone - The timezone to use for extraction. Valid values are from
25162517
* the TZ database (e.g., "America/Los_Angeles") or in the format "Etc/GMT-1."
2518+
* Defaults to "UTC" if not specified.
25172519
* @returns A new `Expression` representing the extracted part as an integer.
25182520
*/
25192521
timestampExtract(
@@ -9783,6 +9785,7 @@ export function timestampDiff(
97839785
* @param part - The part to extract from the timestamp (e.g., "year", "month", "day").
97849786
* @param timezone - The timezone to use for extraction. Valid values are from
97859787
* the TZ database (e.g., "America/Los_Angeles") or in the format "Etc/GMT-1."
9788+
* Defaults to "UTC" if not specified.
97869789
* @returns A new `Expression` representing the extracted part as an integer.
97879790
*/
97889791
export function timestampExtract(
@@ -9805,6 +9808,7 @@ export function timestampExtract(
98059808
* @param part - The expression evaluating to the part to extract.
98069809
* @param timezone - The timezone to use for extraction. Valid values are from
98079810
* the TZ database (e.g., "America/Los_Angeles") or in the format "Etc/GMT-1."
9811+
* Defaults to "UTC" if not specified.
98089812
* @returns A new `Expression` representing the extracted part as an integer.
98099813
*/
98109814
export function timestampExtract(
@@ -9827,6 +9831,7 @@ export function timestampExtract(
98279831
* @param part - The part to extract from the timestamp (e.g., "year", "month", "day").
98289832
* @param timezone - The timezone to use for extraction. Valid values are from
98299833
* the TZ database (e.g., "America/Los_Angeles") or in the format "Etc/GMT-1."
9834+
* Defaults to "UTC" if not specified.
98309835
* @returns A new `Expression` representing the extracted part as an integer.
98319836
*/
98329837
export function timestampExtract(
@@ -9849,6 +9854,7 @@ export function timestampExtract(
98499854
* @param part - The expression evaluating to the part to extract.
98509855
* @param timezone - The timezone to use for extraction. Valid values are from
98519856
* the TZ database (e.g., "America/Los_Angeles") or in the format "Etc/GMT-1."
9857+
* Defaults to "UTC" if not specified.
98529858
* @returns A new `Expression` representing the extracted part as an integer.
98539859
*/
98549860
export function timestampExtract(

handwritten/firestore/types/firestore.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5626,6 +5626,7 @@ declare namespace FirebaseFirestore {
56265626
* @param part - The part to extract from the timestamp (e.g., "year", "month", "day").
56275627
* @param timezone - The timezone to use for extraction. Valid values are from
56285628
* the TZ database (e.g., "America/Los_Angeles") or in the format "Etc/GMT-1."
5629+
* Defaults to "UTC" if not specified.
56295630
* @returns A new `Expression` representing the extracted part as an integer.
56305631
*/
56315632
timestampExtract(
@@ -5646,6 +5647,7 @@ declare namespace FirebaseFirestore {
56465647
* @param part - The expression evaluating to the part to extract.
56475648
* @param timezone - The timezone to use for extraction. Valid values are from
56485649
* the TZ database (e.g., "America/Los_Angeles") or in the format "Etc/GMT-1."
5650+
* Defaults to "UTC" if not specified.
56495651
* @returns A new `Expression` representing the extracted part as an integer.
56505652
*/
56515653
timestampExtract(
@@ -11547,6 +11549,7 @@ declare namespace FirebaseFirestore {
1154711549
* @param part - The part to extract from the timestamp (e.g., "year", "month", "day").
1154811550
* @param timezone - The timezone to use for extraction. Valid values are from
1154911551
* the TZ database (e.g., "America/Los_Angeles") or in the format "Etc/GMT-1."
11552+
* Defaults to "UTC" if not specified.
1155011553
* @returns A new {@code Expression} representing the extracted part as an integer.
1155111554
*/
1155211555
export function timestampExtract(
@@ -11569,6 +11572,7 @@ declare namespace FirebaseFirestore {
1156911572
* @param part - The expression evaluating to the part to extract.
1157011573
* @param timezone - The timezone to use for extraction. Valid values are from
1157111574
* the TZ database (e.g., "America/Los_Angeles") or in the format "Etc/GMT-1."
11575+
* Defaults to "UTC" if not specified.
1157211576
* @returns A new {@code Expression} representing the extracted part as an integer.
1157311577
*/
1157411578
export function timestampExtract(
@@ -11591,6 +11595,7 @@ declare namespace FirebaseFirestore {
1159111595
* @param part - The part to extract from the timestamp (e.g., "year", "month", "day").
1159211596
* @param timezone - The timezone to use for extraction. Valid values are from
1159311597
* the TZ database (e.g., "America/Los_Angeles") or in the format "Etc/GMT-1."
11598+
* Defaults to "UTC" if not specified.
1159411599
* @returns A new {@code Expression} representing the extracted part as an integer.
1159511600
*/
1159611601
export function timestampExtract(
@@ -11613,6 +11618,7 @@ declare namespace FirebaseFirestore {
1161311618
* @param part - The expression evaluating to the part to extract.
1161411619
* @param timezone - The timezone to use for extraction. Valid values are from
1161511620
* the TZ database (e.g., "America/Los_Angeles") or in the format "Etc/GMT-1."
11621+
* Defaults to "UTC" if not specified.
1161611622
* @returns A new {@code Expression} representing the extracted part as an integer.
1161711623
*/
1161811624
export function timestampExtract(

0 commit comments

Comments
 (0)