Problems with calculating TIME and DATE

M

mrpj

Hi,

I got some problems with calculating time and date. The program I'
trying to make is a roster. When I print out a finish report of th
roster(watchlist/guardlist), it will look like this:

Post 1 Post 2 Post 3
Post 4
1.replacement: Namexx namexxx namxx namexx
2.replacement: name xx namexxx namexx namexx
3.replacement: name xx namexxx namexx namexx

Every replacement have a guard/watch time of 2 hours (2 on, 4 hour
off).
Each person (namexxx) have 4 watches/guards per 24-hour-period.


Example:

from 2:00pm 1.replacement
4:00pm 2.replacement
6:00pm 3.replacement
8:00pm 1.replacement
10:00pm 2.replacement
newday 00:00am 3.replacement
02:00am 1.replacement
....and so on

Sorry for my english, and I hope your understand and beforehand thanks
 
Top