1export const SECOND = 1000;
2export const MINUTE = SECOND * 60;
3export const HOUR = MINUTE * 60;
5export const padZero = (amount: number) => `${amount < 10 ? '0' : ''}${amount}`;
7export const getTimeToNextBatch = (nextBatch: number, now: number) => {
8 const toNext = nextBatch - now;
9 const hours = Math.floor(toNext / HOUR);
10 const minutes = Math.floor((toNext - hours * HOUR) / MINUTE);
11 const seconds = Math.floor(
12 (toNext - hours * HOUR - minutes * MINUTE) / SECOND
15 return `${hours}h ${padZero(minutes)}m ${padZero(seconds)}s`;
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list