forked from sheepzh/time-tracker-4-browser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathperiod.d.ts
More file actions
33 lines (33 loc) · 659 Bytes
/
period.d.ts
File metadata and controls
33 lines (33 loc) · 659 Bytes
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
31
32
33
declare namespace timer.period {
type Key = {
year: number
month: number
date: number
/**
* 0~95
* ps. 95 = 60 / 15 * 24 - 1
*/
order: number
}
type KeyRange = [Key, Key]
type Result = Key & {
/**
* 1~900000
* ps. 900000 = 15min * 60s/min * 1000ms/s
*/
milliseconds: number
}
type Row = {
/**
* {yyyy}{mm}{dd}
*/
date: string
startTime: Date
endTime: Date
/**
* 1 - 60000
* ps. 60000 = 60s * 1000ms/s
*/
milliseconds: number
}
}