Possibly should state in Javadoc if Appointment.end is inclusive or exclusive?
GoogleCodeExporter opened this issue · 4 comments
GoogleCodeExporter commented
What version of the product are you using?
0.9.3.1
Please provide any additional information below.
At least for the purpose of deciding if an appointment straddles a day
Appointment.date seems to be inclusive.
My preference would be that end date/time is exclusive so that the next
appointment's start date can be the same as the previous end date without there
seeming to be an overlap. (so start time be inclusive)
Either way it would be nice if it was documented here.
Also it looks like there is a typo on the @param comment for Appointment.setEnd
as it mentions the start time.
I'm up for trying to provide a patch if this is a real problem.
Original issue reported on code.google.com by sal...@gmail.com
on 2 Oct 2012 at 3:01
GoogleCodeExporter commented
Hi Sam,
Usually we use other existing products as reference to decide this kind of
things. Can you check what's the behaviour in Google Calendar, Outlook and iCal?
The idea is that gwt-cal should be as standard (even if it's defacto standard)
as possible.
I've fixed the typo in the documentation. Thanks
Original comment by ctasada
on 2 Oct 2012 at 7:35
GoogleCodeExporter commented
Hello,
Looks like it is pretty muddy for iCal at least:
http://www.bedework.org/trac/bedework/wiki/Bedework/DevDocs/DtstartEndNotes
I'll try and get time to look at others soon. They seem to be stuck on the
ambiguity for date (no time) start/end. For date+time start/end I can only see
exclusive working otherwise you would have to assume some time resolution to
fake the end time? e.g. a meeting in the last two hours of the day would have
to be 22:00 to 23:59:59.999 with 1ms resolution.
Cheers
Sam
Original comment by sal...@gmail.com
on 2 Oct 2012 at 8:10
GoogleCodeExporter commented
The Google calendar ics export uses exclusive for date and date+time resolution.
Google calendar API uses exclusive.
https://developers.google.com/google-apps/calendar/v3/reference/events/insert
Outlook seems to skip the issue by have start+duration.
http://msdn.microsoft.com/en-us/library/office/aa211847(v=office.11).aspx
Cheers
Sam
Original comment by sal...@gmail.com
on 2 Oct 2012 at 8:45
GoogleCodeExporter commented
Original comment by Brad.Ryd...@gmail.com
on 2 May 2013 at 8:47
- Changed state: Acknowledged
- Added labels: Priority-Low, Type-Review
- Removed labels: Priority-Medium, Type-Defect