Page 1 of 1

Dividing a day into 8 hours/three time periods

Posted: Wed Feb 11, 2009 2:13 pm
by 10551622
Hello,

I want to divide a day into three equal time periods to represent three shifts per day, that is, an increment of “dtEightHours”. There is a dtSixHours and a dtTwelveHours, but an eight hour interval is not available.

I tried a guess using Graph.Axes.Bottom.Increment := EncodeTime(8,0,0); but that does not work (“Not enough actual parameters”).

How can I setup a time interval of 8 hours or alternatively divide the day into three parts?

Thanks,

Dave.

Posted: Wed Feb 11, 2009 3:10 pm
by narcis
Hi Dave,

Yes, you can divide one day per 3 like this:

Code: Select all

  Chart1.Axes.Bottom.Increment:=DateTimeStep[dtOneDay]/3;
Or multiply one hour increment 8 times:

Code: Select all

 Chart1.Axes.Bottom.Increment:=DateTimeStep[dtOneHour]*8;

Posted: Wed Feb 11, 2009 3:29 pm
by 10551622
Narcis,

Perfect! I used the DateTimeStep[dtOneDay]/3;

Thanks!

Best regards,
Dave.