5.1 The <time-offset> class and methods

In this section, we define a class to represent time offsets, and a method that describes a time offset. We start by defining the <time-offset> class:

// A relative time between -24:00 and +24:00
define class <time-offset> (<object>) 
  slot total-seconds :: <integer>, init-keyword: total-seconds:; 
end class <time-offset>;