Next: , Up: Public API


2.1 Types

It's a good idea to treat all values as immutable objects. local-time will not modify any object it was given unless explicitly asked to by the :into keyword argument.

— Class: timestamp day sec nsec

timestamp values can represent either a date, a daytime or a time value. It has the following slots:

       (defclass timestamp ()
         ((day :type integer)
          (sec :type integer)
          (nsec :type (integer 0 999999999))))

The following constraints apply to the specific types:

— Struct: timezone path name loaded

timezone objects represent timezones - local and political modifications to the time representation. Timezones are responsible for storing offsets from GMT, abbreviations for different sub-timezones, and the times each sub-timezone is to be in effect.