@@ -97,19 +97,19 @@ An ISO 8601 datetime string.
97
97
98
98
### Remarks
99
99
100
- This function requires ** Bicep version 0.5.5 or later** .
100
+ This function requires ** Bicep version 0.5.6 or later** .
101
101
102
102
### Example
103
103
104
104
The following example shows output values for the epoch time functions.
105
105
106
106
``` bicep
107
- param convertToEpoch int = dateTimeToEpoch(dateTimeAdd(utcNow(), 'P1Y'))
107
+ param convertedEpoch int = dateTimeToEpoch(dateTimeAdd(utcNow(), 'P1Y'))
108
108
109
- var convertToDatetime = dateTimeFromEpoch(convertToEpoch )
109
+ var convertedDatetime = dateTimeFromEpoch(convertedEpoch )
110
110
111
- output epochValue int = convertToEpoch
112
- output datetimeValue string = convertToDatetime
111
+ output epochValue int = convertedEpoch
112
+ output datetimeValue string = convertedDatetime
113
113
```
114
114
115
115
The output is:
@@ -119,7 +119,6 @@ The output is:
119
119
| datetimeValue | String | 2023-05-02T15:16:13Z |
120
120
| epochValue | Int | 1683040573 |
121
121
122
-
123
122
## dateTimeToEpoch
124
123
125
124
` dateTimeToEpoch(dateTime) `
@@ -140,19 +139,19 @@ An integer that represents the number of seconds from midnight on January 1, 197
140
139
141
140
### Remarks
142
141
143
- This function requires ** Bicep version 0.5.5 or later** .
142
+ This function requires ** Bicep version 0.5.6 or later** .
144
143
145
144
### Examples
146
145
147
146
The following example shows output values for the epoch time functions.
148
147
149
148
``` bicep
150
- param convertToEpoch int = dateTimeToEpoch(dateTimeAdd(utcNow(), 'P1Y'))
149
+ param convertedEpoch int = dateTimeToEpoch(dateTimeAdd(utcNow(), 'P1Y'))
151
150
152
- var convertToDatetime = dateTimeFromEpoch(convertToEpoch )
151
+ var convertedDatetime = dateTimeFromEpoch(convertedEpoch )
153
152
154
- output epochValue int = convertToEpoch
155
- output datetimeValue string = convertToDatetime
153
+ output epochValue int = convertedEpoch
154
+ output datetimeValue string = convertedDatetime
156
155
```
157
156
158
157
The output is:
0 commit comments