-
Notifications
You must be signed in to change notification settings - Fork 183
/
scratch.js
30 lines (26 loc) · 626 Bytes
/
scratch.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// const spacetime = require('./builds/spacetime.cjs')
import spacetime from './src/index.js'
// console.log(spacetime('Feb 29 2001').iso())
// console.log(spacetime('2001-02-02T12Z').tz)
console.log(spacetime('Sun Mar 14 15:09:48 +0000 2021').iso())
// let s = spacetime(null, 'pacific/fiji')
// console.log(s.time())
// console.log(s.timezone())
// s = s.minus(5, 'months')
// console.log(s.time())
// console.log(s.timezone())
// s = spacetime(null, 'America/Toronto')
// console.log(s.time())
// console.log(s.timezone())
/*
bahia_banderas
chihuahua
mazatlan
merida
mexico_city
monterrey
amman
damascus
tehran
fiji
*/