UNPKG
@rr0/time
Version:
latest (0.11.2)
0.11.2
0.11.1
0.11.0
0.10.0
0.9.2
0.9.1
0.9.0
0.8.11
0.8.10
0.8.9
0.8.8
0.8.7
0.8.6
0.8.5
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
0.7.8
0.7.7
0.7.6
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.2
0.6.1
0.6.0
0.5.1
0.5.0
0.4.1
0.4.0
0.3.3
0.3.2
0.3.1
0.3.0
0.2.2
0.2.1
0.2.0
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
EDTF parsing
github.com/RR0/time
RR0/time
@rr0/time
/
src
/
level0
/
month
/
MonthValidator.mjs
12 lines
(10 loc)
•
247 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
{ MinMaxValidator }
from
"../../calendar/index.mjs"
export
class
MonthValidator
extends MinMaxValidator { /** * @param {number}
min
* @param {number}
max
*/ constructor (
min
=
1
,
max
=
12
) {
super
(
"month"
,
min
,
max
) } }