Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the time-interval Reference Manual, version 0.0.1, generated automatically by Declt version 3.0 "Montgomery Scott" on Mon Apr 19 18:01:20 2021 GMT+0.
• Introduction | What time-interval is all about | |
• Systems | The systems documentation | |
• Files | The files documentation | |
• Packages | The packages documentation | |
• Definitions | The symbols documentation | |
• Indexes | Concepts, functions, variables and data types |
Cyrus Harmon
time-interval is a common lisp library for flexibly encoding time intervals. It relies heavily on the local-time library for the representation of particular points in time, or as local-time calls them, timestamps.
The primary motivation for time-interval is to be able to represent periods of time such as "6 months from July 1, 2008". The idea here isn't to represent the start and dates (or times) explicitly, but rather to flexibly represent the interval. The difficulty arises from the fact that a length of time such as "6 months" can't be uniquely represented as a number of days, hours, minutes, etc... Depending on what the starting point is, the number of days (hours, etc...) in a 6-month interval will change. Therefore, we need a way of representing the time intervals and for computing a new exact time given a starting time and a time interval.
cl-ppcre, local-time
The time-interval class is used for representing a given interval of time, such as 6 months, 2 days, 4 hours and 3 seconds. Each of the components can independenly be positive or negative, so we can have, for instance, an interval that represents 1 hour less than two days, by doing:
(make-instance 'time-interval :hours -1 :days 2)
or:
(time-interval :hours -1 :days 2)
Next: Files, Previous: Introduction, Up: Top [Contents][Index]
The main system appears first, followed by any subsystem dependency.
• The time-interval system |
Cyrus Harmon <ch-lisp@bobobeach.com>
BSD
A library for representing intervals of time
0.0.1
time-interval.asd (file)
Files are sorted by type and then listed depth-first from the systems components trees.
• Lisp files |
• The time-interval.asd file | ||
• The time-interval/package.lisp file | ||
• The time-interval/time-interval.lisp file |
Next: The time-interval/package․lisp file, Previous: Lisp files, Up: Lisp files [Contents][Index]
time-interval.asd
time-interval (system)
Next: The time-interval/time-interval․lisp file, Previous: The time-interval․asd file, Up: Lisp files [Contents][Index]
time-interval (system)
package.lisp
Previous: The time-interval/package․lisp file, Up: Lisp files [Contents][Index]
package.lisp (file)
time-interval (system)
time-interval.lisp
Next: Definitions, Previous: Files, Up: Top [Contents][Index]
Packages are listed by definition order.
• The time-interval package |
package.lisp (file)
interval
common-lisp
Definitions are sorted by export status, category, package, and then by lexicographic order.
• Exported definitions | ||
• Internal definitions |
Next: Internal definitions, Previous: Definitions, Up: Definitions [Contents][Index]
• Exported functions | ||
• Exported generic functions | ||
• Exported classes |
Next: Exported generic functions, Previous: Exported definitions, Up: Exported definitions [Contents][Index]
time-interval.lisp (file)
time-interval.lisp (file)
time-interval.lisp (file)
time-interval.lisp (file)
time-interval.lisp (file)
Computes the difference between the individual components of local-time:timestamp t1 and t2. Returns 8 values: dyear dmonth dday dhh dmm dss dns dday-of-week where dyear is the difference in years, etc...
time-interval.lisp (file)
Next: Exported classes, Previous: Exported functions, Up: Exported definitions [Contents][Index]
time-interval.lisp (file)
time-interval.lisp (file)
Previous: Exported generic functions, Up: Exported definitions [Contents][Index]
time-interval.lisp (file)
standard-object (class)
:years
0
interval-years (generic function)
(setf interval-years) (generic function)
:months
0
interval-months (generic function)
(setf interval-months) (generic function)
:weeks
0
interval-weeks (generic function)
(setf interval-weeks) (generic function)
:days
0
interval-days (generic function)
(setf interval-days) (generic function)
:hours
0
interval-hours (generic function)
(setf interval-hours) (generic function)
:minutes
0
interval-minutes (generic function)
(setf interval-minutes) (generic function)
:seconds
0
interval-seconds (generic function)
(setf interval-seconds) (generic function)
:nanoseconds
0
interval-nanoseconds (generic function)
(setf interval-nanoseconds) (generic function)
Previous: Exported definitions, Up: Definitions [Contents][Index]
• Internal special variables | ||
• Internal macros | ||
• Internal functions | ||
• Internal generic functions |
Next: Internal macros, Previous: Internal definitions, Up: Internal definitions [Contents][Index]
time-interval.lisp (file)
Next: Internal functions, Previous: Internal special variables, Up: Internal definitions [Contents][Index]
time-interval.lisp (file)
Next: Internal generic functions, Previous: Internal macros, Up: Internal definitions [Contents][Index]
time-interval.lisp (file)
Previous: Internal functions, Up: Internal definitions [Contents][Index]
automatically generated reader method
time-interval.lisp (file)
automatically generated writer method
time-interval.lisp (file)
automatically generated reader method
time-interval.lisp (file)
automatically generated writer method
time-interval.lisp (file)
automatically generated reader method
time-interval.lisp (file)
automatically generated writer method
time-interval.lisp (file)
automatically generated reader method
time-interval.lisp (file)
automatically generated writer method
time-interval.lisp (file)
automatically generated reader method
time-interval.lisp (file)
automatically generated writer method
time-interval.lisp (file)
automatically generated reader method
time-interval.lisp (file)
automatically generated writer method
time-interval.lisp (file)
automatically generated reader method
time-interval.lisp (file)
automatically generated writer method
time-interval.lisp (file)
automatically generated reader method
time-interval.lisp (file)
automatically generated writer method
time-interval.lisp (file)
Previous: Definitions, Up: Top [Contents][Index]
• Concept index | ||
• Function index | ||
• Variable index | ||
• Data type index |
Next: Function index, Previous: Indexes, Up: Indexes [Contents][Index]
Jump to: | F L T |
---|
Jump to: | F L T |
---|
Next: Variable index, Previous: Concept index, Up: Indexes [Contents][Index]
Jump to: | (
C F G I M N O P T |
---|
Jump to: | (
C F G I M N O P T |
---|
Next: Data type index, Previous: Function index, Up: Indexes [Contents][Index]
Jump to: | *
D H M N S W Y |
---|
Jump to: | *
D H M N S W Y |
---|
Previous: Variable index, Up: Indexes [Contents][Index]
Jump to: | C P S T |
---|
Jump to: | C P S T |
---|