Skip to content

Himura2la/sscompare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compare Simple-second Time with Common Time

Read more about the project here: https://sssecond.com

Requirements

  • Python 3
  • Node.js

Interface

$ python3 main.py -h
usage: main.py [-h] step {W,D,h,m,s} spread

https://sssecond.com

positional arguments:
  step         Step size
  {W,D,h,m,s}  Step unit (weeks, days, hours, minutes, seconds)
  spread       Number of steps

optional arguments:
  -h, --help   show this help message and exit

Sample output

Minutes

$ python3 main.py 1 m 4
6 2021-08-07 03:37:31 | 2 2020-2-71 94'272.3
6 2021-08-07 03:38:31 | 2 2020-2-71 94'341.8
6 2021-08-07 03:39:31 * 2 2020-2-71 94'411.2
6 2021-08-07 03:40:31 | 2 2020-2-71 94'480.7
6 2021-08-07 03:41:31 | 2 2020-2-71 94'550.1

Hours

$ python3 main.py 1 h 10
5 2021-08-06 22:39:40 | 2 2020-2-71 73'589.0
5 2021-08-06 23:39:40 | 2 2020-2-71 77'755.6
6 2021-08-07 00:39:40 | 2 2020-2-71 81'922.3
6 2021-08-07 01:39:40 | 2 2020-2-71 86'089.0
6 2021-08-07 02:39:40 | 2 2020-2-71 90'255.6
6 2021-08-07 03:39:40 * 2 2020-2-71 94'422.3
6 2021-08-07 04:39:40 | 2 2020-2-71 98'589.0
6 2021-08-07 05:39:40 | 3 2020-2-72 02'755.6
6 2021-08-07 06:39:40 | 3 2020-2-72 06'922.3
6 2021-08-07 07:39:40 | 3 2020-2-72 11'089.0
6 2021-08-07 08:39:40 | 3 2020-2-72 15'255.6

Days

$ python3 main.py 1 d 6
3 2021-08-04 03:39:51 | 4 2020-2-68 94'434.5
4 2021-08-05 03:39:51 | 0 2020-2-69 94'434.5
5 2021-08-06 03:39:51 | 1 2020-2-70 94'434.5
6 2021-08-07 03:39:51 * 2 2020-2-71 94'434.5
0 2021-08-08 03:39:51 | 3 2020-2-72 94'434.5
1 2021-08-09 03:39:51 | 4 2020-3-00 94'434.5
2 2021-08-10 03:39:51 | 0 2020-3-01 94'434.5