Android Question Help with making a special clock

romill

Member
Licensed User
Longtime User
Hi,

At my school there is a very unique schedule system called the 'Mod Schedule'. The school day consists of 20 'Mods' that each last 16 minutes each. An average class is 2 mods for a total of 32 minutes. Mod 1 starts at 8 and mod 20 ends at 2:40. Every day between mods 6 and 7 there is a gathering that averages 15 minutes where announcements are had. As a result you will frequently hear "What mod is it?" around school. The idea is to make a simple clock that displays the date, time, and the mod. How can I figure out what 'mod' it is?


Thanks
 

NJDude

Expert
Licensed User
Longtime User
The way I see it, you will need an array and register the start time of each mod, then compare the current time against the time in the array and get the current mod.

I'm not sure about that "Every day between mods 6 and 7 there is a gathering that averages 15 minutes", but to me it looks that every day has only 25 mods, the last one starting at 2:24 and ending at 2:40
 
Upvote 0

romill

Member
Licensed User
Longtime User
Thanks for the quick reply! I am sure there are only 20 mods, I think they actually alternate between 16-17 minutes long or perhaps the gathering is longer. As long as I can get the base working I will figure out the exact times later. Could you provide an example on how I would compare the current time to a time in an array?
 
Upvote 0

NJDude

Expert
Licensed User
Longtime User
The attached project is a barebones sample, this is how I understand your question on the first post.

The code will show a result between the hours of 8:00AM and 2:24PM, like I said, is a barebones sample not the actual solution to your problem, but it will help you get an idea.
 

Attachments

  • SchoolMod_Sample.zip
    9.6 KB · Views: 175
Upvote 0
Top