Skip to content

Commit 0908fff

Browse files
committed
edit
1 parent befb178 commit 0908fff

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

articles/azure-resource-manager/bicep/bicep-functions-date.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The datetime value that results from adding the duration value to the base value
3232

3333
### Remarks
3434

35-
The `dateTimeAdd` function lacks leap year awareness, and _P1Y_ should be interpreted as _P365D_, while _P1M_ should be interpreted as P30D. The following example adds one month to January 31:
35+
The `dateTimeAdd` function doesn't take leap years into consideration, and _P1Y_ should be interpreted as _P365D_, while _P1M_ should be interpreted as P30D. The following json shows some examples:
3636

3737
```bicep
3838
output addOneYearNonLeap string = dateTimeAdd('2023-01-01 00:00:00Z', 'P1Y') //2024-01-01T00:00:00Z
@@ -42,7 +42,7 @@ output addOneMonthNonLeap string = dateTimeAdd('2023-02-01 00:00:00Z', 'P1M') //
4242
output addOneMonthLeap string = dateTimeAdd('2024-02-01 00:00:00Z', 'P1M') //2023-03-02T00:00:00Z
4343
```
4444

45-
In the preceding example, considering 2023 as a non-leap year, the outcome of adding one year to the initial day of the year is _2024-01-01T00:00:00Z_. Conversely, adding one year to the starting day of 2024, a leap year, results in _2024-12-31T00:00:00Z_, not _2025-01-01T00:00:00Z_, given that a leap year comprises 366 days instead of 365 days. Moreover, the variation between leap and non-leap years is evident when adding one month to the initial day of February, resulting in different day-of-the-month outcomes.
45+
In the preceding example, considering 2023 as a non-leap year, the outcome of adding one year to the initial day of the year is _2024-01-01T00:00:00Z_. Conversely, adding one year to the starting day of 2024, a leap year, results in _2024-12-31T00:00:00Z_, not _2025-01-01T00:00:00Z_, given that a leap year comprises 366 days instead of 365 days. Furthermore, the distinction between leap and non-leap years becomes apparent when adding one month to the first day of February, leading to varying day-of-the-month results.
4646

4747
### Examples
4848

articles/azure-resource-manager/templates/template-functions-date.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The datetime value that results from adding the duration value to the base value
3535

3636
### Remarks
3737

38-
The `dateTimeAdd` function lacks leap year awareness, and _P1Y_ should be interpreted as _P365D_, while _P1M_ should be interpreted as P30D. The following example adds one month to January 31:
38+
The `dateTimeAdd` function doesn't take leap years into consideration, and _P1Y_ should be interpreted as _P365D_, while _P1M_ should be interpreted as P30D. The following json shows some examples:
3939

4040
```json
4141
{
@@ -63,7 +63,7 @@ The `dateTimeAdd` function lacks leap year awareness, and _P1Y_ should be interp
6363
}
6464
```
6565

66-
In the preceding example, considering 2023 as a non-leap year, the outcome of adding one year to the initial day of the year is _2024-01-01T00:00:00Z_. Conversely, adding one year to the starting day of 2024, a leap year, results in _2024-12-31T00:00:00Z_, not _2025-01-01T00:00:00Z_, given that a leap year comprises 366 days instead of 365 days. Moreover, the variation between leap and non-leap years is evident when adding one month to the initial day of February, resulting in different day-of-the-month outcomes.
66+
In the preceding example, considering 2023 as a non-leap year, the outcome of adding one year to the initial day of the year is _2024-01-01T00:00:00Z_. Conversely, adding one year to the starting day of 2024, a leap year, results in _2024-12-31T00:00:00Z_, not _2025-01-01T00:00:00Z_, given that a leap year comprises 366 days instead of 365 days. Furthermore, the distinction between leap and non-leap years becomes apparent when adding one month to the first day of February, leading to varying day-of-the-month results.
6767

6868
### Examples
6969

0 commit comments

Comments
 (0)