Welcome to WebmasterWorld Guest from 18.104.22.168
the school day is split into somethign like 6 periods and lunch (but lunch is differnt for 2 groups) on the main page i wanted to show the time and what period it is for the two groups e.g.
Tuesday 14th March 12:49
Lower School - Lunch - 11 mins till Period 6
Sixth Form - Period 6 - 61 mins till End Of School
any ideas how this could be accomblished
A standard method is to work out the difference between the two times in seconds, and then work out how many multiples of 'whole' periods are in that difference (i.e. years, months, days etc.) where a minute is 60 seconds, an hour is 3600 and so on.
Do a search for 'PHP countdown scripts' on Google and you will find some useful code snippets ;).