UNPKG
rtech-struct
Version:
latest (2.52.0)
2.52.0
2.51.0
2.50.0
2.49.0
2.48.0
2.47.1
2.47.0
2.46.0
2.45.8
2.45.7
2.45.6
2.45.5
2.45.4
2.45.3
2.45.2
2.45.1
2.45.0
2.44.0
2.43.1
2.43.0
2.42.0
2.41.0
2.40.1
2.40.0
2.39.0
2.38.2
2.38.1
2.38.0
2.37.2
2.37.1
2.37.0
2.36.0
2.35.5
2.35.4
2.35.3
2.35.2
2.35.1
2.35.0
2.34.0
2.33.10
2.33.9
2.33.8
2.33.7
2.33.6
2.33.5
2.33.4
2.33.3
2.33.2
2.33.1
2.33.0
2.32.1
2.32.0
2.31.0
2.30.0
2.29.0
2.28.1
2.28.0
2.27.0
2.26.0
2.25.0
2.24.0
2.23.0
2.22.0
2.21.0
2.20.0
2.19.0
2.18.0
2.17.0
2.16.0
2.15.0
2.14.0
2.13.0
2.12.0
2.11.0
2.10.0
2.9.3
2.9.2
2.9.1
2.9.0
2.8.2
2.8.1
2.8.0
2.7.0
2.6.0
2.5.0
2.4.0
2.3.1
2.2.1
2.1.1
2.1.0
2.0.0
1.9.1
1.9.0
1.8.2
1.8.1
1.8.0
1.7.3
1.7.2
1.7.1
1.7.0
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
1.5.3
1.5.2
1.5.1
1.5.0
1.4.2
1.4.1
1.4.0
1.3.2
1.3.1
1.3.0
1.2.1
1.1.3
1.1.2
1.1.1
1.0.19
1.0.18
1.0.17
1.0.14
1.0.13
1.0.12
1.0.9
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.0
Rtech Platform Superstruct Entity
github.com/yoctu/rtech-struct
yoctu/rtech-struct
rtech-struct
/
structures
/
tz_string.js
15 lines
(12 loc)
•
235 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const
s =
require
(
'superstruct'
)
const
Tz
= s.
define
(
'Tz'
,
(
value
) =>
{
try
{
new
Intl
.
DateTimeFormat
(
'en-US'
, {
timeZone
: value }).
format
()
return
true
}
catch
(e) {
return
false
} })
module
.
exports
= {
Tz
:
Tz
}