This is the local-time-duration Reference Manual, version 1.1, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Sep 15 05:57:38 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
local-time-duration
local-time-duration: Simple duration functionality on top of local-time
WebCheckout, Inc.
MIT
1.1
local-time
(system).
alexandria
(system).
esrap
(system).
package.lisp
(file).
defcomparator.lisp
(file).
duration.lisp
(file).
format.lisp
(file).
timestamp.lisp
(file).
iso8601.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
local-time-duration/local-time-duration.asd
local-time-duration/package.lisp
local-time-duration/defcomparator.lisp
local-time-duration/duration.lisp
local-time-duration/format.lisp
local-time-duration/timestamp.lisp
local-time-duration/iso8601.lisp
local-time-duration/local-time-duration.asd
local-time-duration
(system).
local-time-duration/package.lisp
local-time-duration
(system).
local-time-duration/defcomparator.lisp
package.lisp
(file).
local-time-duration
(system).
%defcomparator
(macro).
local-time-duration/duration.lisp
defcomparator.lisp
(file).
local-time-duration
(system).
duration
(function).
duration
(class).
duration*
(function).
duration+
(function).
duration-
(function).
duration-as
(function).
duration-maximum
(function).
duration-minimum
(function).
duration/
(function).
duration/=
(compiler macro).
duration/=
(function).
duration<
(compiler macro).
duration<
(function).
duration<=
(compiler macro).
duration<=
(function).
duration=
(compiler macro).
duration=
(function).
duration>
(compiler macro).
duration>
(function).
duration>=
(compiler macro).
duration>=
(function).
%duration-compare
(function).
%duration/=
(function).
%duration<
(function).
%duration<=
(function).
%duration=
(function).
%duration>
(function).
%duration>=
(function).
+nsecs-per-day+
(constant).
+nsecs-per-hour+
(constant).
+nsecs-per-minute+
(constant).
+nsecs-per-second+
(constant).
+nsecs-per-week+
(constant).
day-of
(reader method).
(setf day-of)
(writer method).
decode-duration
(function).
nsec-of
(reader method).
(setf nsec-of)
(writer method).
sec-of
(reader method).
(setf sec-of)
(writer method).
local-time-duration/format.lisp
duration.lisp
(file).
local-time-duration
(system).
human-readable-duration
(function).
print-object
(method).
call-with-designated-stream
(function).
pretty-seconds
(function).
with-designated-stream
(macro).
local-time-duration/timestamp.lisp
format.lisp
(file).
local-time-duration
(system).
timestamp-difference
(function).
timestamp-duration+
(function).
timestamp-duration-
(function).
local-time-duration/iso8601.lisp
timestamp.lisp
(file).
local-time-duration
(system).
parse-iso8601-duration
(function).
char-string-to-integer
(function).
format-iso8601-duration
(function).
make-duration-from-time-values
(function).
production-hms-to-list
(function).
production-ymd-to-list
(function).
Packages are listed by definition order.
local-time-duration
ltd
common-lisp
.
esrap
.
duration
(function).
duration
(class).
duration*
(function).
duration+
(function).
duration-
(function).
duration-as
(function).
duration-maximum
(function).
duration-minimum
(function).
duration/
(function).
duration/=
(compiler macro).
duration/=
(function).
duration<
(compiler macro).
duration<
(function).
duration<=
(compiler macro).
duration<=
(function).
duration=
(compiler macro).
duration=
(function).
duration>
(compiler macro).
duration>
(function).
duration>=
(compiler macro).
duration>=
(function).
human-readable-duration
(function).
parse-iso8601-duration
(function).
timestamp-difference
(function).
timestamp-duration+
(function).
timestamp-duration-
(function).
%defcomparator
(macro).
%duration-compare
(function).
%duration/=
(function).
%duration<
(function).
%duration<=
(function).
%duration=
(function).
%duration>
(function).
%duration>=
(function).
+nsecs-per-day+
(constant).
+nsecs-per-hour+
(constant).
+nsecs-per-minute+
(constant).
+nsecs-per-second+
(constant).
+nsecs-per-week+
(constant).
call-with-designated-stream
(function).
char-string-to-integer
(function).
day-of
(generic reader).
(setf day-of)
(generic writer).
decode-duration
(function).
format-iso8601-duration
(function).
make-duration-from-time-values
(function).
nsec-of
(generic reader).
(setf nsec-of)
(generic writer).
pretty-seconds
(function).
production-hms-to-list
(function).
production-ymd-to-list
(function).
sec-of
(generic reader).
(setf sec-of)
(generic writer).
with-designated-stream
(macro).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Returns a new duration instance representing the sum of the ‘WEEK‘, ‘DAY‘, ‘HOUR‘, ‘MINUTE‘, ‘SEC‘, and ‘NSEC‘ arguments. Durations are normalized, that is, (duration :hour 1) and (duration :minute 60) will result in duration instances with the same internal representation.
Returns a fresh duration as long as ‘DURATION‘ multiplied by ‘FACTOR‘.
Returns a fresh duration representing the sum of the lengths of its arguments.
Returns a fresh duration representing the result of subtracting the length of each argument in turn.
Returns two values: the first is the number of whole ‘UNIT‘s within ‘DURATION‘, and the second is a fresh duration representing the reamainder of the original duration after dividing it by ‘UNIT‘. ‘UNIT‘ must be one of :week, :day, :hour, :minute, :sec, and :nsec.
Returns a fresh duration that is as long as ‘DURATION‘ divided by ‘DIVISOR‘.
Returns ‘T‘ if every duration is not equally long, else returns ‘NIL‘.
Returns ‘T‘ if every duration is shorter than the preceding duration, else returns ‘NIL‘.
Returns ‘T‘ if every duration is shorter than or equal to the preceding duration, else returns ‘NIL‘.
Returns ‘T‘ if every duration is equally long, else returns ‘NIL‘.
Returns ‘T‘ if every duration is longer than the preceding duration, else returns ‘NIL‘.
Returns ‘T‘ if every duration is longer than or equal to the preceding duration, else returns ‘NIL‘.
Parser for ISO8601 durations (with limitations) returning DURATION instances.
http://en.wikipedia.org/wiki/ISO_8601#Durations
The only, known, divergence from the syntax specified is that
fractional values are allowed anywhere and not only in the smallest
value.
Returns a duration representing the time elapsed between the timestamps ‘TIME-A‘ and ‘TIME-B‘. This duration may be negative if ‘TIME-B‘ is later than ‘TIME-A‘.
Returns a fresh timestamp representing the time when ‘DURATION‘ has elapsed after ‘TIMESTAMP‘.
Returns a fresh timestamp representing the time when ‘DURATION‘ will elapse before ‘TIMESTAMP‘.
A duration instance represents a period of time with no additional context (e.g., starting or ending time or location).
Binds VAR to the stream designated (as per cl:format’s stream
argument) by the value STREAM and executes BODY.
If STREAM is nil VAR will be bound to a string-output-stream and the resulting string will be returned, otherwise the actual stream object used will be returned. In either case the return value of BODY is ignored.
Returns, as multiple values, DURATION’s logical components:
(nsecs secs minutes hours days weeks months years)
If WEEKS is T days the days component of DURATION will first be used
to compute an integral number of weeks, and the remainder days will be
returned. If WEEKS is NIL (the default) the weeks value will always be
0 and the whole number of days will be returned as DAYS.
In the current implementation MONTHS and YEARS are always 0.
Jump to: | %
(
C D F G H M N P S T W |
---|
Jump to: | %
(
C D F G H M N P S T W |
---|
Jump to: | +
C D N S |
---|
Jump to: | +
C D N S |
---|
Jump to: | C D F I L P S T |
---|
Jump to: | C D F I L P S T |
---|