1.0.4 • Published 11 months ago
nv-time-ymwd-rng v1.0.4
nv-time-ymwd-rng
- attr_0
- attr_1
install
- npm install nv-time-ymwd-rng
splitted
usage
const x = require("nv-time-ymwd-rng");
example
>
> var hist = [
... {
... host: '127.0.0.1',
... name: 'vpass__20240819_20240826',
... smts: 1724080092677,
... emts: 1724684892677
... }
... ]
undefined
> var [o,for_add] = x({each_rng_capacity:'1w',hist,from:"2024-07-10"})
undefined
>
> o
Rngs(4) [
HistEle [2024-08-19 08:00:00.000 +0800 - 2024-08-19 23:08:12.677 +0800 ] {
'#tmzone': '+0800',
host: '127.0.0.1',
name: 'vpass__20240819_20240819',
smts: 1724025600000,
emts: 1724080092677
},
{
host: '127.0.0.1',
name: 'vpass__20240819_20240826',
smts: 1724080092677,
emts: 1724684892677
},
HistEle [2024-08-26 23:08:12.677 +0800 - 2024-09-02 23:08:12.677 +0800 ] {
'#tmzone': '+0800',
host: '127.0.0.1',
name: 'vpass__20240826_20240902',
smts: 1724684892677,
emts: 1725289692677
},
HistEle [2024-09-02 23:08:12.677 +0800 - 2024-09-09 23:08:12.677 +0800 ] {
'#tmzone': '+0800',
host: '127.0.0.1',
name: 'vpass__20240902_20240909',
smts: 1725289692677,
emts: 1725894492677
},
prefix: 'vpass',
tmzone: '+0800',
each_rng_unit: 'w',
each_rng_capacity: 1
]
>
METHODS
APIS
LICENSE
- ISC