forked from spencermountain/timezone-soft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscratch.js
29 lines (23 loc) · 760 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
import soft from './src/index.js'
// import spacetime from 'spacetime'
// let zones = spacetime.timezones()
// const arr = require('/Users/spencer/mountain/timezone-soft/data/05-metazones.js')
let ids = soft('Etc/GMT+14')
console.log(ids)
// Object.keys(metas).forEach(k => {
// let ids = soft(metas[k].std[0])
// if (ids.length === 0) {
// console.log(k, metas[k].std[0])
// }
// if (metas[k].dst) {
// ids = soft(metas[k].dst[0])
// if (ids.length === 0) {
// console.log(k, metas[k].dst[0])
// }
// }
// })
// let out = {
// iana: 'Australia/Lord_Howe',
// standard: { name: 'Lord Howe Standard Time', abbr: 'LHST', offset: 10.5 },
// daylight: { name: 'Lord Howe Daylight Time', abbr: 'LHDT', offset: 11.5 }
// }