summaryrefslogtreecommitdiff
path: root/notes/what_i_want_time_to_look_like.txt
blob: fc71b14ead5282ccf5de2b47b5610c0b48380838 (plain)
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
34
35
36
37
38
39
40
where the first place after the letter of the day of the week is lit up if the building is open right at or before the time 0000 AND is open at least one minute past 0000, if the building opens up from 0001 - 0029 it will not show up until the second spot after the day of the week for the 0030 spot

COOVER HALL
M-------------@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@----
T-------------@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@----
W-------------@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@----
R-------------@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@----
F-------------@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@----
s------------------------------------------------
S------------------------------------------------
0 1 2 3 4 5 6 7 8 9       1 2 3 4 5 6 7 8 9      24


HOOVER HALL
M___________@@@@@@@@@@@@@@@@@@@@@@@@@@@@@________
T___________@@@@@@@@@@@@@@@@@@@@@@@@@@@@@________
W___________@@@@@@@@@@@@@@@@@@@@@@@@@@@@@________
R___________@@@@@@@@@@@@@@@@@@@@@@@@@@@@@________
F___________@@@@@@@@@@@@@@@@@@@@@@@@@@@@@________
s___________@@@@@@@@@@@@@@@@@@@@@@@@@@@@@________
S___________@@@@@@@@@@@@@@@@@@@@@@@@@@@@@________
0 1 2 3 4 5 6 7 8 9       1 2 3 4 5 6 7 8 9      24

start = 700, end = 2200
start = 700, end = 2200
start = 700, end = 2200
start = 700, end = 2200
start = -1, end = -1
start = 1230, end = 1800
start = 1230, end = 1800

is converted to:
if end time is lower than start time, go to the next day and modify its string as necessary
might be best to find the first and last places to print a @ then use a loop to print a @ in between

monday: start at 7 am, go to 10PM if 10 pm (2200) is greater than 7 am (0700) (it is) then find the  
for every hour, multiply it by two example: 10PM (2200) is 44 places into the array
so take 2200 / 100 = 22, now take that 22 and multiply it by 2 = 44
take the 22 and multiply it by one hundred and store in another variable, this way it loses all minutes associated with it, now subtract it from the original number, if the number is greater than 0, then add 1, if it is greater than 30, add another 1
add one for a number in the minutes column between 01 and 29 and add two for a number between 30 and 59