Navigation bar
  Home Print document Start Previous page
 54 of 234 
Next page End  

Gravitybox Schedule Primer
Page 52 
1998-2004 Gravitybox Software LLC
Also the StartDate and StartTime properties may be
influenced by the EmployGMT property. If EmployGMT is
True, the export routine will add (or subtract) the necessary
number of hours to make the StartDate and StartTime
correspond to GMT. When a schedule is loaded with this
property also set to true, the calculation will be done in reverse, based on the time zone
of the computer performing the load. For example, if an appointment at 2:00 PM is
saved on a computer in the Eastern Standard Time (EST), which is GMT –5 hours, the
saved file will have 7:00 PM for its StartTime property. This is because at 2:00 PM EST
it is 7:00 GMT. Now this file is sent to California, which is Pacific Standard Time (PST)
or GMT –8 hours. When loaded the 7:00 PM file setting will be converted to 11:00 AM.
So the west coast user will see that this appointment starts at 11:00 AM local time,
which is correct. This is the same as 2:00 PM EST for the east coast user. If the
EmployGMT property is False (default value), the time loaded and saved will be exactly
as it appears on the schedule.
Notice that each element is described by its tags. The schedule uses these tags to save
and load information into the correct elements. The language is a simple markup
language. It conforms for the most part to the XML standard. It differs in that you cannot
add a data definition template header. However since the software is creating the files
and not the user, this should not be a problem. The markup language is all that is
needed for the uses of this scheduling software. To create an application that can read
or save a ”gcf” (Gravitybox Calendar File) file, its file format must be used. The code
below defines all the collections saved in the file. If this code were saved to a file, it
would load successfully, however there would be no data loaded.
<?xml version='1.0'?>
<?Properties ScheduleIncrement='30'?>
<!-- This is a GbSchedule saved schedule. -->
<GbSchedule version='6.2.342'>
  <ScheduleRooms/>
  <ScheduleCategories/>
  <ScheduleProviders/>
  <ScheduleNoDropAreas/>
  <ScheduleItems/>
</GbSchedule>
The order of loading is determined by how the file is organized. If the Categories
collection is first in the file and Providers second, this is the order of loading. Unless
manually modified, it will be loaded as it was saved. The procedure for saving is as
follows: Rooms, Categories, Providers, NoDropAreas, and ScheduleItems.
Quick Tip
If you are distributing schedules to
people in other time zones, you may
use Greenwich Mean Time (GMT).
This will ensure that time differences
are not lost.
http://www.purepage.com