Browse Prior Art Database

TimeStamp Smalltalk Class

IP.com Disclosure Number: IPCOM000108155D
Original Publication Date: 1992-Apr-01
Included in the Prior Art Database: 2005-Mar-22
Document File: 1 page(s) / 34K

Publishing Venue

IBM

Related People

Baber, RL: AUTHOR

Abstract

When doing searches for free time among events from multiple calendars, some events may span more than one day. In addition, the search request parameter itself may span multiple days. For example, the user may request that the search look at calendar events for the following two weeks for every potential invitee to a meeting. The software implementing the search algorithms must do many comparisons of time information, determining which events overlap each other, etc. This is complicated when the start time and end time are on different dates. For example, 5 p.m. is not later than 8 a.m. if 8 a.m. occurs on the following day, or two days later.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 91% of the total text.

TimeStamp Smalltalk Class

      When doing searches for free time among events from multiple
calendars, some events may span more than one day.  In addition, the
search request parameter itself may span multiple days.  For example,
the user may request that the search look at calendar events for the
following two weeks for every potential invitee to a meeting.  The
software implementing the search algorithms must do many comparisons
of time information, determining which events overlap each other,
etc.  This is complicated when the start time and end time are on
different dates.  For example, 5 p.m. is not later than 8 a.m. if 8
a.m. occurs on the following day, or two days later.

      The solution is to define a new class, TimeStamp.  A TimeStamp
has two aspects: date and time.  A TimeStamp class can then be
instantiated as an object to represent the start and end of events or
search requests.  For example, an event will have an "end" variable
and a "start" variable which are set to TimeStamp objects.  By
defining methods for comparisons, subtraction, and addition of
TimeStamp objects, code which previously used simple Time or Date
objects does not have to be altered to use TimeStamps.  This
effectively enables multi-day searching in a system designed for
single-day searches by changing code in one central place.

      The advantages are:
      1)   Enables multi-day searching in a system designed for
single-day searches by changing code in...