Originally Posted by
shaggy hiker
what jugglingreferee suggested would work as long as you are using a 64 bit integer. You can take each number as a single byte, then bit-shift each byte into one of the eight bytes in the long integer. You would be wasting tons of space in each byte, since you would only be using the low five bits. alternatively, you could switch to non-military time, which would mean that you would have hours 1-12, which would fit into the low three bits of a byte. You could then use the fourth bit to indicate am/pm. By doing that, you could pack all seven slots into four bytes, since each byte could hold two days.