File tree 1 file changed +33
-0
lines changed 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 9
9
<validationRule id =" anything" regex =" .*" />
10
10
<validationRule id =" anythingNotEmpty" regex =" .+" />
11
11
<validationRule id =" iso8601" regex =" \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}" />
12
+ <validationRule id =" xmlDate"
13
+ regex =" -?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])(Z|[+-]((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?" />
14
+ <validationRule id =" xmlTime"
15
+ regex =" (([01][0-9]|2[0-3])(:[0-5][0-9]){2}(\.[0-9]+)?|24:00:00(\.0+)?)(Z|[+-]((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?" />
12
16
13
17
<function name =" datetime" >
14
18
<!-- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat -->
141
145
</description >
142
146
</option >
143
147
</formatSignature >
148
+ </function >
149
+
150
+ <function name =" date" >
151
+ <description >
152
+ Date formatting
153
+ </description >
144
154
155
+ <formatSignature >
156
+ <input validationRule =" xmlDate" />
157
+ <option name =" style" values =" full long medium short" >
158
+ <description >
159
+ The predefined date formatting style to use.
160
+ </description >
161
+ </option >
162
+ </formatSignature >
163
+ </function >
164
+
165
+ <function name =" time" >
166
+ <description >
167
+ Time formatting
168
+ </description >
169
+
170
+ <formatSignature >
171
+ <input validationRule =" xmlTime" />
172
+ <option name =" style" values =" full long medium short" >
173
+ <description >
174
+ The predefined time formatting style to use.
175
+ </description >
176
+ </option >
177
+ </formatSignature >
145
178
</function >
146
179
147
180
<function name =" number" >
You can’t perform that action at this time.
0 commit comments