f =: 3 : 0
(>'2.0'(8!:0){.y), ,>':',&.>'r<0>2.0'(8!:0)}.y
)
c =: 3 : 'y #~ -.(+./ @: (''---''&ss))"1 y'
e =: 2 : 'u ,"_ c ": (3 : v)"0 y'
m =: 0.5 1 1.5 2 3 4 5 6 9 10 12 15 20 25 30 40 50 75 100 150
9!:7 (9$' '),' -' [ s =: 9!:6''
r1 =:' Old/New Hours' e'(f y,0,0);4j2":1e4%~3600*y' i.25
r2 =: 'Old/New Mins' e'(f y,0);5j2":100%~60*y' 1 2 3 5 10 15 20 30 45 60 90
r3 =: 'New/Old Hours' e'(3j1":y%2);f (3#60) #: 10000*y%2' i.2*10
r4 =: 'New/Old Minutes'e'(5j1":y);f (3#60) #: 100*y' m
9!:7 s
echo r1;r2;r3;r4
exit 0
0 : 0
| Old/New Hours |Old/New Mins |New/Old Hours |New/Old Minutes |
+---------------+-------------+--------------+----------------+
| 0:00:00 0.00 | 1:00 0.60 | 0.0 0:00:00 | 0.5 0:00:50 |
| 1:00:00 0.36 | 2:00 1.20 | 0.5 1:23:20 | 1.0 0:01:40 |
| 2:00:00 0.72 | 3:00 1.80 | 1.0 2:46:40 | 1.5 0:02:30 |
| 3:00:00 1.08 | 5:00 3.00 | 1.5 4:10:00 | 2.0 0:03:20 |
| 4:00:00 1.44 | 10:00 6.00 | 2.0 5:33:20 | 3.0 0:05:00 |
| 5:00:00 1.80 | 15:00 9.00 | 2.5 6:56:40 | 4.0 0:06:40 |
| 6:00:00 2.16 | 20:00 12.00 | 3.0 8:20:00 | 5.0 0:08:20 |
| 7:00:00 2.52 | 30:00 18.00 | 3.5 9:43:20 | 6.0 0:10:00 |
| 8:00:00 2.88 | 45:00 27.00 | 4.0 11:06:40 | 9.0 0:15:00 |
| 9:00:00 3.24 | 60:00 36.00 | 4.5 12:30:00 | 10.0 0:16:40 |
| 10:00:00 3.60 | 90:00 54.00 | 5.0 13:53:20 | 12.0 0:20:00 |
| 11:00:00 3.96 | | 5.5 15:16:40 | 15.0 0:25:00 |
| 12:00:00 4.32 | | 6.0 16:40:00 | 20.0 0:33:20 |
| 13:00:00 4.68 | | 6.5 18:03:20 | 25.0 0:41:40 |
| 14:00:00 5.04 | | 7.0 19:26:40 | 30.0 0:50:00 |
| 15:00:00 5.40 | | 7.5 20:50:00 | 40.0 1:06:40 |
| 16:00:00 5.76 | | 8.0 22:13:20 | 50.0 1:23:20 |
| 17:00:00 6.12 | | 8.5 23:36:40 | 75.0 2:05:00 |
| 18:00:00 6.48 | | 9.0 25:00:00 | 100.0 2:46:40 |
| 19:00:00 6.84 | | 9.5 26:23:20 | 150.0 4:10:00 |
| 20:00:00 7.20 | | | |
| 21:00:00 7.56 | | | |
| 22:00:00 7.92 | | | |
| 23:00:00 8.28 | | | |
| 24:00:00 8.64 | | | |
)