From: Anthony S. <an...@cs...> - 2007-09-24 09:31:26
|
> However, I still do not understand why all those conversions are > needed since in the end everything is related to the simulation clock. true that everything is related to the simulation clock, but the time zone does matter ! For example, the resource is in UTC+10 and the user is in UTC+5 and init time is 05:00:00 (UTC+0) for simplicity. At the start of simulation, resource time is 15:00:00 and user time is 00:00:00 If the user submits at GridSim.clock() = 1 hour and NO time zone conversion, then the resource thinks the current time is 01:00:00, i.e. user init time + GridSim.clock(), which is already expired. This is because the ARObject only stores the user current time and the user has no idea about the resource time zone is. regards, anthony |