Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
UltraDayView - TimeSlotInterval
posted

Is there any way to make sure the timeslot interval of 15minutes will be exaclty 15minutes instead of 14minutes 59secs?

Currently our program only let's user change up till minute level and not to seconds, but by doing so the default selected timeslot starttime and endtime will be 00 and 14 - instead of 00 and 15, because it is actually 00:00 and 14:59.

Any suggestion?

Parents
  • 69832
    Verified Answer
    Offline posted

    Because time slots cannot intersect, the end time of one must not be the same as the start time of the next, hence the one second discrepancy. What you can do is, when dealing with the times, round the value of the TimeSlot.EndTime property up by one second.

Reply Children
No Data