The periods Reference Manual

Table of Contents

Next: , Previous: , Up: (dir)   [Contents][Index]

The periods Reference Manual

This is the periods Reference Manual, version 0.0.2, generated automatically by Declt version 2.3 "Robert April" on Wed Mar 14 04:24:24 2018 GMT+0.


Next: , Previous: , Up: Top   [Contents][Index]

1 Introduction

Welcome to the PERIODS library.  The intention of this code is to provide a
convenient set of utilities for manipulating times, distances between times,
and both contiguous and discontiguous ranges of time.  By combining these
facilities in various ways, almost any type of time expression is possible.

Please see the documentation in doc/ for information.

John Wiegley 


Next: , Previous: , Up: Top   [Contents][Index]

2 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

2.1 periods

Maintainer

Christophe Junke <junke.christophe@gmail.com>

Author

Johh Wiegley <jwiegley@gmail.com>

License

BSD-3

Description

Utilities for manipulating time ranges and distances, based on LOCAL-TIME.

Version

0.0.2

Dependency

local-time

Source

periods.asd (file)

Components

Next: , Previous: , Up: Top   [Contents][Index]

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Previous: , Up: Files   [Contents][Index]

3.1 Lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.1 periods.asd

Location

periods.asd

Systems

periods (system)


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.2 periods/periods.lisp

Parent

periods (system)

Location

periods.lisp

Packages

periods

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.3 periods/strptime.lisp

Dependency

periods.lisp (file)

Parent

periods (system)

Location

strptime.lisp

Exported Definitions
Internal Definitions

Previous: , Up: Lisp files   [Contents][Index]

3.1.4 periods/parser.lisp

Dependency

strptime.lisp (file)

Parent

periods (system)

Location

parser.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

4 Packages

Packages are listed by definition order.


Previous: , Up: Packages   [Contents][Index]

4.1 periods

Source

periods.lisp (file)

Nickname

time-periods

Use List
Exported Definitions
Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

5.1 Exported definitions


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.1 Special variables

Special Variable: *input-time-format*
Package

periods

Source

periods.lisp (file)

Special Variable: *output-time-format*
Package

periods

Source

periods.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.2 Macros

Macro: with-timestamp-range (MIN-SYMBOL MAX-SYMBOL &optional UPDATE) &body BODY

Define a context where (1) MIN-SYMBOL and MAX-SYMBOL are locally bound variables with NIL default values and (2) UPDATE names a lexically bound function which takes a timestamp and updates the variables MIN-SYMBOL and MAX-SYMBOL so that they respectively hold the earliest and latest timestamp after successive invocations. That function finally returns its input value. For example, the following code builds a TIME-RANGE instance from a list of dated transactions.

(with-timestamp-range (earliest latest)
(dolist (tt transaction)
(update-range (transaction-date tt)))
(time-range :begin earliest :end latest :end-inclusive-p t))

A custom name can be used to nest invocations:

(with-timestamp-range (earliest latest global-update-range) (dolist (jj journals)
(with-timestamp-range (<< >>)
(dolist (tt (journal-xact jj)) (gloal-update-range
(update-range (transaction-date tt))))
(format t "Journal earliest / latest: ~A / ~A~%" << >>))) (format t "Global earliest / latest: ~A / ~A~%" earliest latest))

Package

periods

Source

periods.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.3 Functions

Function: add-duration LEFT RIGHT

Add one duration to another.

Package

periods

Source

periods.lisp (file)

Function: add-time FIXED-TIME DURATION &key REVERSE

Given a FIXED-TIME, add the supplied DURATION.

Example (reader notation requires calling LOCAL-TIME:ENABLE-READ-MACROS):

(add-time @2007-05-20T12:10:10.000 (duration :hours 50))
=> @2007-05-22T14:10:10.000

NOTE: This function always adds the largest increments first, so:

(add-time @2003-01-09 (duration :years 1 :days 20)) => @2004-02-29

If days has been added before years, the result would have been "@2004-03-01".

Package

periods

Source

periods.lisp (file)

Function: current-year ()

Return the current year as a FIXNUM.

Package

periods

Source

periods.lisp (file)

Function: day-of-week FIXED-TIME

Return the day of the week associated with a given FIXED-TIME.
The result is a FIXNUM with 0 representing Sunday, through 6 on Saturday.

Package

periods

Source

periods.lisp (file)

Function: duration &rest ARGS

Create a DURATION object.

One thing to note about duration: there is no way to determine the total length of a duration in terms of any specific time quantity, without first binding that duration to a fixed point in time (after all, how many days are in a month if you don’t know which month it is?) Therefore, those looking for a function like "duration-seconds" are really wanting to work with ranges, not just durations.

Package

periods

Source

periods.lisp (file)

Function: duration-seconds INSTANCE
Function: (setf duration-seconds) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: falls-on-weekend-p FIXED-TIME

Return T if the given FIXED-TIME occurs on a Saturday or Sunday.

Package

periods

Source

periods.lisp (file)

Function: find-smallest-resolution STEP-BY

Examine the property list STEP-BY and return the smallest unit of time specified.

For example, given the following property list:

(:DAY 10 :HOUR 5 :MINUTE 2)

The result is :MINUTE.

Package

periods

Source

periods.lisp (file)

Function: fixed-time &rest ARGS

Return a fixed point in time relative to the time of the call. ARGS is a property list giving a specific precision for the return value.

If the keyword argument :NOW is given, all else is ignored; this is equivalent to calling LOCAL-TIME:NOW.

Otherwise, any keyword arguments given override their corresponding elements in the current time. Further, any elements smaller in resolution than the finest specified element are reduced to 0 or 1, according to their position.

For example, assuming the current time is "@2007-11-17T23:02:00.000", compare these outputs:

(fixed-time :month 4) => @2007-04-01T00:00:00.000
(fixed-time :day 10) => @2007-11-10T00:00:00.000
(fixed-time :hour 15) => @2007-11-17T15:00:00.000

This behavior makes it very easy to return a fixed time for "april of this year", etc. If you wish to determine the date of the previous April, while preserving the current day of the month, hour of the day, etc., then see the function PREVIOUS-TIME.

Package

periods

Source

periods.lisp (file)

Function: floor-time FIXED-TIME &optional RESOLUTION

Reduce a fixed time to be no finer than RESOLUTION.

For example, if the date is 2007-04-20, and the resolution is :month, the date is floored to 2007-04-01. Anything smaller than the resolution is reduced to zero (or 1, if it is a day or month being reduced).

Package

periods

Source

periods.lisp (file)

Function: leapp YEAR

Return T if YEAR falls on a leap year.

Package

periods

Source

periods.lisp (file)

Function: parse-time-period STRING
Package

periods

Source

parser.lisp (file)

Function: parse-time-range STRING
Package

periods

Source

parser.lisp (file)

Function: read-fixed-time STR IN
Package

periods

Source

strptime.lisp (file)

Function: sleep-until FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: strftime FIXED-TIME &key FORMAT
Package

periods

Source

strptime.lisp (file)

Function: strptime STRING &key FORMAT DEFAULT-YEAR
Package

periods

Source

strptime.lisp (file)

Function: strptime-decoded STRING &key FORMAT
Package

periods

Source

strptime.lisp (file)

Function: subtract-duration LEFT RIGHT

Subtract one duration from another.

Package

periods

Source

periods.lisp (file)

Function: subtract-time FIXED-TIME DURATION
Package

periods

Source

periods.lisp (file)

Function: time-difference LEFT RIGHT

Compute the duration existing between fixed-times LEFT and RIGHT.

The order of left or right is ignored; the returned DURATION, if added to the earlier value, will result in the later.

A complexity of this process which might surprise some is that larger quantities are added by ADD-TIME before smaller quantities. For example, what is the difference between 2003-02-10 and 2004-03-01? If you add years before days, the difference is 1 year and 20 days. If you were to add days before years, however, the difference would be 1 year and 21 days. The question, do you advance to 2004 and then calculate between 2-10 and 3-01, or do you move from 2-10 to 3-01, and then increment the year? This library chooses to add years before days, since this follows human reckoning a bit closer (i.e., a person would likely flip to the 2004 calendar and then start counting off days, rather than the other way around). This difference in reckoning can be tricky, however, so bear this in mind.

Package

periods

Source

periods.lisp (file)

Function: time-period &rest ARGS
Package

periods

Source

periods.lisp (file)

Function: time-period-generator PERIOD
Package

periods

Source

periods.lisp (file)

Function: time-range &rest ARGS
Package

periods

Source

periods.lisp (file)

Function: time-range-begin RANGE
Package

periods

Source

periods.lisp (file)

Setf Expander

(setf time-range-begin) (setf expander)

Setf Expander: (setf time-range-begin) RANGE
Package

periods

Source

periods.lisp (file)

Reader

time-range-begin (function)

Function: time-range-duration RANGE
Package

periods

Source

periods.lisp (file)

Function: time-range-end RANGE
Package

periods

Source

periods.lisp (file)

Function: time-within-range-p FIXED-TIME RANGE
Package

periods

Source

periods.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.4 Structures

Structure: duration ()
Package

periods

Source

periods.lisp (file)

Direct superclasses

structure-object (structure)

Direct slots
Slot: years
Type

integer

Initform

0

Readers

duration-years (function)

Writers

(setf duration-years) (function)

Slot: months
Type

integer

Initform

0

Readers

duration-months (function)

Writers

(setf duration-months) (function)

Slot: days
Type

integer

Initform

0

Readers

duration-days (function)

Writers

(setf duration-days) (function)

Slot: hours
Type

integer

Initform

0

Readers

duration-hours (function)

Writers

(setf duration-hours) (function)

Slot: minutes
Type

integer

Initform

0

Readers

duration-minutes (function)

Writers

(setf duration-minutes) (function)

Slot: seconds
Type

integer

Initform

0

Readers

duration-seconds (function)

Writers

(setf duration-seconds) (function)

Slot: milliseconds
Type

integer

Initform

0

Readers

duration-milliseconds (function)

Writers

(setf duration-milliseconds) (function)

Slot: microseconds
Type

integer

Initform

0

Readers

duration-microseconds (function)

Writers

(setf duration-microseconds) (function)

Slot: nanoseconds
Type

integer

Initform

0

Readers

duration-nanoseconds (function)

Writers

(setf duration-nanoseconds) (function)

Structure: time-period ()
Package

periods

Source

periods.lisp (file)

Direct superclasses

structure-object (structure)

Direct slots
Slot: range
Readers

time-period-range (function)

Writers

(setf time-period-range) (function)

Slot: step
Readers

time-period-step (function)

Writers

(setf time-period-step) (function)

Slot: skip
Readers

time-period-skip (function)

Writers

(setf time-period-skip) (function)

Structure: time-range ()
Package

periods

Source

periods.lisp (file)

Direct superclasses

structure-object (structure)

Direct slots
Slot: fixed-begin
Readers

get-range-fixed-begin (function)

Writers

(setf get-range-fixed-begin) (function)

Slot: begin
Readers

get-range-begin (function)

Writers

(setf get-range-begin) (function)

Slot: begin-inclusive-p
Initform

t

Readers

get-range-begin-inclusive-p (function)

Writers

(setf get-range-begin-inclusive-p) (function)

Slot: fixed-end
Readers

get-range-fixed-end (function)

Writers

(setf get-range-fixed-end) (function)

Slot: end
Readers

get-range-end (function)

Writers

(setf get-range-end) (function)

Slot: end-inclusive-p
Readers

get-range-end-inclusive-p (function)

Writers

(setf get-range-end-inclusive-p) (function)

Slot: duration
Readers

get-range-duration (function)

Writers

(setf get-range-duration) (function)

Slot: anchor
Readers

get-range-anchor (function)

Writers

(setf get-range-anchor) (function)


Previous: , Up: Exported definitions   [Contents][Index]

5.1.5 Types

Type: fixed-time ()
Package

periods

Source

periods.lisp (file)


Previous: , Up: Definitions   [Contents][Index]

5.2 Internal definitions


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.1 Special variables

Special Variable: *date-readtable*
Package

periods

Source

strptime.lisp (file)

Special Variable: *days-in-months*
Package

periods

Source

periods.lisp (file)

Special Variable: *parser-readtable*
Package

periods

Source

parser.lisp (file)

Special Variable: *token-stack*
Package

periods

Source

parser.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.2 Macros

Macro: do-relative-times (VAR ANCHOR RELATIVE-TIME END &optional RESULT) &body BODY

A ’do’ style version of the functional MAP-RELATIVE-TIMES macro.

The disadvantage to DO-RELATIVE-TIMES is that there is no way to ask for a reversed time sequence, or specify an inclusive endpoint.

Package

periods

Source

periods.lisp (file)

Macro: do-time-period (BEGIN-VAR END-VAR NEXT-BEGIN-VAR PERIOD &optional RESULT) &rest BODY
Package

periods

Source

periods.lisp (file)

Macro: do-times (VAR START DURATION END &optional RESULT) &body BODY

A ’do’ style version of the functional MAP-TIMES macro.

The disadvantage to DO-TIMES is that there is no way to ask for a reversed time sequence, or specify an inclusive endpoint.

Package

periods

Source

periods.lisp (file)

Macro: if-let ((VAR VALUE)) &body BODY
Package

periods

Source

parser.lisp (file)

Macro: list-relative-times ANCHOR RELATIVE-TIME END &key REVERSE INCLUSIVE-P

Return a list of all times within the given range.

Package

periods

Source

periods.lisp (file)

Macro: list-time-period PERIOD
Package

periods

Source

periods.lisp (file)

Macro: list-times START DURATION END &key REVERSE INCLUSIVE-P

Return a list of all times within the given range.

Package

periods

Source

periods.lisp (file)

Macro: loop-relative-times FORMS ANCHOR RELATIVE-TIME END &key REVERSE INCLUSIVE-P
Package

periods

Source

periods.lisp (file)

Macro: loop-time-period FORMS PERIOD
Package

periods

Source

periods.lisp (file)

Macro: loop-times FORMS START DURATION END &key REVERSE INCLUSIVE-P

Map over a set of times separated by DURATION, calling CALLABLE with the start of each.

Package

periods

Source

periods.lisp (file)

Macro: map-relative-times CALLABLE ANCHOR RELATIVE-TIME END &key REVERSE INCLUSIVE-P

Map over a set of times separated by DURATION, calling CALLABLE with the start of each.

Package

periods

Source

periods.lisp (file)

Macro: map-time-period CALLABLE PERIOD
Package

periods

Source

periods.lisp (file)

Macro: map-times CALLABLE START DURATION END &key REVERSE INCLUSIVE-P

Map over a set of times separated by DURATION, calling CALLABLE with the start of each.

Package

periods

Source

periods.lisp (file)

Macro: with-skippers &body BODY
Package

periods

Source

periods.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.3 Functions

Function: add-days DURATION DAYS
Package

periods

Source

periods.lisp (file)

Function: add-hours DURATION HOURS
Package

periods

Source

periods.lisp (file)

Function: add-microseconds DURATION MICROSECONDS
Package

periods

Source

periods.lisp (file)

Function: add-milliseconds DURATION MILLISECONDS
Package

periods

Source

periods.lisp (file)

Function: add-minutes DURATION MINUTES
Package

periods

Source

periods.lisp (file)

Function: add-months DURATION MONTHS
Package

periods

Source

periods.lisp (file)

Function: add-nanoseconds DURATION NANOSECONDS
Package

periods

Source

periods.lisp (file)

Function: add-seconds DURATION SECONDS
Package

periods

Source

periods.lisp (file)

Function: add-years DURATION YEARS
Package

periods

Source

periods.lisp (file)

Function: bounded-add LEFT RIGHT BOUND

A bounded addition operator. Returns: VALUE CARRY.

Package

periods

Source

periods.lisp (file)

Function: bounded-subtract LEFT RIGHT BOUND

A bounded subtraction operator. Returns: VALUE CARRY.

Package

periods

Source

periods.lisp (file)

Function: compile-duration DATA
Package

periods

Source

parser.lisp (file)

Function: compile-relative-time DATA
Package

periods

Source

parser.lisp (file)

Function: compile-time DATA
Package

periods

Source

parser.lisp (file)

Function: copy-duration INSTANCE
Package

periods

Source

periods.lisp (file)

Function: copy-relative-time INSTANCE
Package

periods

Source

periods.lisp (file)

Function: copy-time-period INSTANCE
Package

periods

Source

periods.lisp (file)

Function: copy-time-range INSTANCE
Package

periods

Source

periods.lisp (file)

Function: day-begin ANCHOR
Package

periods

Source

periods.lisp (file)

Function: day-end ANCHOR &key INCLUSIVE-P
Package

periods

Source

periods.lisp (file)

Function: day-of FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: day-range FIXED-TIME &key BEGIN-INCLUSIVE-P END-INCLUSIVE-P
Package

periods

Source

periods.lisp (file)

Function: days-in-month MONTH &optional YEAR
Package

periods

Source

periods.lisp (file)

Function: details-match-relative-time-p RELATIVE-TIME NSEC SS MM HH DAY MONTH YEAR DAY-OF-WEEK DAYLIGHT-P TIMEZONE TZ-ABBREV

Return T if the given time elements honor the details in RELATIVE-TIME.

Package

periods

Source

periods.lisp (file)

Function: duration-days INSTANCE
Function: (setf duration-days) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: duration-hours INSTANCE
Function: (setf duration-hours) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: duration-microseconds INSTANCE
Function: (setf duration-microseconds) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: duration-milliseconds INSTANCE
Function: (setf duration-milliseconds) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: duration-minutes INSTANCE
Function: (setf duration-minutes) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: duration-months INSTANCE
Function: (setf duration-months) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: duration-nanoseconds INSTANCE
Function: (setf duration-nanoseconds) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: duration-p OBJECT
Package

periods

Source

periods.lisp (file)

Function: duration-years INSTANCE
Function: (setf duration-years) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: enclosing-duration RELATIVE-TIME

Return a DURATION which, if applied to a time, causes NEXT-TIME to move to the next matching occurrence of that time pattern.

For example, if you ask for ’:day 18’ on Nov 18, it will return the same time back to you. If you add enclosing duration for that relative time to Nov 18 and then ask again, you’ll get Dec 18.

Package

periods

Source

periods.lisp (file)

Function: get-range-anchor INSTANCE
Function: (setf get-range-anchor) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: get-range-begin INSTANCE
Function: (setf get-range-begin) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: get-range-begin-inclusive-p INSTANCE
Function: (setf get-range-begin-inclusive-p) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: get-range-duration INSTANCE
Function: (setf get-range-duration) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: get-range-end INSTANCE
Function: (setf get-range-end) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: get-range-end-inclusive-p INSTANCE
Function: (setf get-range-end-inclusive-p) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: get-range-fixed-begin INSTANCE
Function: (setf get-range-fixed-begin) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: get-range-fixed-end INSTANCE
Function: (setf get-range-fixed-end) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: hour-begin ANCHOR
Package

periods

Source

periods.lisp (file)

Function: hour-end ANCHOR &key INCLUSIVE-P
Package

periods

Source

periods.lisp (file)

Function: hour-of FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: hour-range FIXED-TIME &key BEGIN-INCLUSIVE-P END-INCLUSIVE-P
Package

periods

Source

periods.lisp (file)

Function: ignore-character STREAM CHAR
Package

periods

Source

strptime.lisp (file)

Function: make-duration &key (YEARS YEARS) (MONTHS MONTHS) (DAYS DAYS) (HOURS HOURS) (MINUTES MINUTES) (SECONDS SECONDS) (MILLISECONDS MILLISECONDS) (MICROSECONDS MICROSECONDS) (NANOSECONDS NANOSECONDS)
Package

periods

Source

periods.lisp (file)

Function: make-duration-relative DATA
Package

periods

Source

parser.lisp (file)

Function: make-relative-time &key (YEAR YEAR) (MONTH MONTH) (WEEK WEEK) (DAY-OF-WEEK DAY-OF-WEEK) (DAY DAY) (HOUR HOUR) (MINUTE MINUTE) (SECOND SECOND) (MILLISECOND MILLISECOND) (MICROSECOND MICROSECOND) (NANOSECOND NANOSECOND)
Package

periods

Source

periods.lisp (file)

Function: make-time-period &key (RANGE RANGE) (STEP STEP) (SKIP SKIP)
Package

periods

Source

periods.lisp (file)

Function: make-time-range &key (FIXED-BEGIN FIXED-BEGIN) (BEGIN BEGIN) (BEGIN-INCLUSIVE-P BEGIN-INCLUSIVE-P) (FIXED-END FIXED-END) (END END) (END-INCLUSIVE-P END-INCLUSIVE-P) (DURATION DURATION) (ANCHOR ANCHOR)
Package

periods

Source

periods.lisp (file)

Function: matches-relative-time-p FIXED-TIME RELATIVE-TIME

Return T if the given FIXED-TIME honors the details in RELATIVE-TIME.

Package

periods

Source

periods.lisp (file)

Function: microsecond-begin ANCHOR
Package

periods

Source

periods.lisp (file)

Function: microsecond-end ANCHOR &key INCLUSIVE-P
Package

periods

Source

periods.lisp (file)

Function: microsecond-of FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: microsecond-part BIGNUM
Package

periods

Source

periods.lisp (file)

Function: millisecond-begin ANCHOR
Package

periods

Source

periods.lisp (file)

Function: millisecond-end ANCHOR &key INCLUSIVE-P
Package

periods

Source

periods.lisp (file)

Function: millisecond-of FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: millisecond-part BIGNUM
Package

periods

Source

periods.lisp (file)

Function: minute-begin ANCHOR
Package

periods

Source

periods.lisp (file)

Function: minute-end ANCHOR &key INCLUSIVE-P
Package

periods

Source

periods.lisp (file)

Function: minute-of FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: minute-range FIXED-TIME &key BEGIN-INCLUSIVE-P END-INCLUSIVE-P
Package

periods

Source

periods.lisp (file)

Function: monday-week-begin ANCHOR
Package

periods

Source

periods.lisp (file)

Function: monday-week-end ANCHOR &key INCLUSIVE-P
Package

periods

Source

periods.lisp (file)

Function: monday-week-range FIXED-TIME &key BEGIN-INCLUSIVE-P END-INCLUSIVE-P
Package

periods

Source

periods.lisp (file)

Function: month-begin ANCHOR
Package

periods

Source

periods.lisp (file)

Function: month-end ANCHOR &key INCLUSIVE-P
Package

periods

Source

periods.lisp (file)

Function: month-of FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: month-range FIXED-TIME &key BEGIN-INCLUSIVE-P END-INCLUSIVE-P
Package

periods

Source

periods.lisp (file)

Function: multiply-duration LEFT MULTIPLIER

Add one duration to another.

Package

periods

Source

periods.lisp (file)

Function: nanosecond-of FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: nanosecond-part BIGNUM
Package

periods

Source

periods.lisp (file)

Function: next-day &optional FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: next-friday ANCHOR &key REVERSE
Package

periods

Source

periods.lisp (file)

Function: next-hour &optional FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: next-microsecond &optional FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: next-millisecond &optional FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: next-minute &optional FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: next-monday ANCHOR &key REVERSE
Package

periods

Source

periods.lisp (file)

Function: next-monday-week &optional FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: next-month &optional FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: next-saturday ANCHOR &key REVERSE
Package

periods

Source

periods.lisp (file)

Function: next-second &optional FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: next-sunday ANCHOR &key REVERSE
Package

periods

Source

periods.lisp (file)

Function: next-sunday-week &optional FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: next-thursday ANCHOR &key REVERSE
Package

periods

Source

periods.lisp (file)

Function: next-time ANCHOR RELATIVE-TIME &key REVERSE ACCEPT-ANCHOR RECURSIVE-CALL

Compute the first time after FIXED-TIME which matches RELATIVE-TIME.

This function finds the first moment after FIXED-TIME which honors every element in RELATIVE-TIME:

(next-time @2007-05-20 (relative-time :month 3)) => @2008-03-20

The relative time constructor arguments may also be symbolic:

(relative-time :month :this)
(relative-time :month :next)
(relative-time :month :prev)

To find the date two weeks after next February, a combination of NEXT-TIME and ADD-TIME must be used, since "next February" is a relative time concept, while "two weeks" is a duration concept:

(add-time (next-time @2007-05-20 (relative-time :month 2))
(duration :days 14))

NOTE: The keyword arguments to RELATIVE-TIME are always singular; those to DURATION are always plural.

The following form resolves to the first sunday of the given year:

(next-time (previous-time @2007-05-20
(relative-time :month 1 :day 1)) (relative-time :week-day 0))

This form finds the first Friday the 13th after today:

(next-time @2007-05-20 (relative-time :day 13 :day-of-week 5))

NOTE: When adding times, NEXT-TIME always seeks the next time that fully honors your request. If asked for Feb 29, the year of the resulting time will fall in a leap year. If asked for Thu, Apr 29, it returns the next occurrence of Apr 29 which falls on a Friday. Example:

(next-time @2007-11-01
(relative-time :month 4 :day 29 :day-of-week 4))
=> @2010-04-29T00:00:00.000

Package

periods

Source

periods.lisp (file)

Function: next-tuesday ANCHOR &key REVERSE
Package

periods

Source

periods.lisp (file)

Function: next-wednesday ANCHOR &key REVERSE
Package

periods

Source

periods.lisp (file)

Function: next-year &optional FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: p/cardinal IN &optional EOF-ERROR-P
Package

periods

Source

parser.lisp (file)

Function: p/days-of-week IN &optional EOF-ERROR-P
Package

periods

Source

parser.lisp (file)

Function: p/duration-spec IN &optional EOF-ERROR-P
Package

periods

Source

parser.lisp (file)

Function: p/fixed-time IN &optional EOF-ERROR-P
Package

periods

Source

parser.lisp (file)

Function: p/months-of-year IN &optional EOF-ERROR-P
Package

periods

Source

parser.lisp (file)

Function: p/number IN &optional EOF-ERROR-P
Package

periods

Source

parser.lisp (file)

Function: p/ordinal IN &optional EOF-ERROR-P
Package

periods

Source

parser.lisp (file)

Function: p/period-unit IN &optional EOF-ERROR-P
Package

periods

Source

parser.lisp (file)

Function: p/qualified-time IN &optional EOF-ERROR-P
Package

periods

Source

parser.lisp (file)

Function: p/relative-time IN &optional EOF-ERROR-P
Package

periods

Source

parser.lisp (file)

Function: p/time IN &optional EOF-ERROR-P
Package

periods

Source

parser.lisp (file)

Function: p/time-duration IN &optional EOF-ERROR-P
Package

periods

Source

parser.lisp (file)

Function: p/time-reference IN &optional EOF-ERROR-P
Package

periods

Source

parser.lisp (file)

Function: p/time-unit IN &optional EOF-ERROR-P
Package

periods

Source

parser.lisp (file)

Function: peek-token IN &optional EOF-ERROR-P
Package

periods

Source

parser.lisp (file)

Function: previous-day &optional FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: previous-friday ANCHOR
Package

periods

Source

periods.lisp (file)

Function: previous-hour &optional FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: previous-millisecond &optional FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: previous-minute &optional FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: previous-monday ANCHOR
Package

periods

Source

periods.lisp (file)

Function: previous-monday-week &optional FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: previous-month &optional FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: previous-nanosecond &optional FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: previous-saturday ANCHOR
Package

periods

Source

periods.lisp (file)

Function: previous-second &optional FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: previous-sunday ANCHOR
Package

periods

Source

periods.lisp (file)

Function: previous-sunday-week &optional FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: previous-thursday ANCHOR
Package

periods

Source

periods.lisp (file)

Function: previous-time ANCHOR RELATIVE-TIME &key ACCEPT-ANCHOR

This function is the reverse of ‘NEXT-TIME’. Please look there for more.

Package

periods

Source

periods.lisp (file)

Function: previous-tuesday ANCHOR
Package

periods

Source

periods.lisp (file)

Function: previous-wednesday ANCHOR
Package

periods

Source

periods.lisp (file)

Function: previous-year &optional FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: range-dec VALUE MIN MAX
Package

periods

Source

periods.lisp (file)

Function: range-inc VALUE MIN MAX
Package

periods

Source

periods.lisp (file)

Function: read-from-stream IN &optional EOF-ERROR-P
Package

periods

Source

parser.lisp (file)

Function: read-integer IN &optional LENGTH SKIP-WHITESPACE-P
Package

periods

Source

strptime.lisp (file)

Function: read-token IN &optional EOF-ERROR-P
Package

periods

Source

parser.lisp (file)

Function: relative-time &rest ARGS
Package

periods

Source

periods.lisp (file)

Function: relative-time-day INSTANCE
Function: (setf relative-time-day) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: relative-time-day-of-week INSTANCE
Function: (setf relative-time-day-of-week) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: relative-time-generator ANCHOR RELATIVE-TIME &key REVERSE
Package

periods

Source

periods.lisp (file)

Function: relative-time-hour INSTANCE
Function: (setf relative-time-hour) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: relative-time-microsecond INSTANCE
Function: (setf relative-time-microsecond) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: relative-time-millisecond INSTANCE
Function: (setf relative-time-millisecond) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: relative-time-minute INSTANCE
Function: (setf relative-time-minute) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: relative-time-month INSTANCE
Function: (setf relative-time-month) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: relative-time-nanosecond INSTANCE
Function: (setf relative-time-nanosecond) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: relative-time-p OBJECT
Package

periods

Source

periods.lisp (file)

Function: relative-time-second INSTANCE
Function: (setf relative-time-second) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: relative-time-stepper RELATIVE-TIME &key REVERSE
Package

periods

Source

periods.lisp (file)

Function: relative-time-week INSTANCE
Function: (setf relative-time-week) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: relative-time-year INSTANCE
Function: (setf relative-time-year) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: second-begin ANCHOR
Package

periods

Source

periods.lisp (file)

Function: second-end ANCHOR &key INCLUSIVE-P
Package

periods

Source

periods.lisp (file)

Function: second-of FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: second-range FIXED-TIME &key BEGIN-INCLUSIVE-P END-INCLUSIVE-P
Package

periods

Source

periods.lisp (file)

Function: set-microsecond-part BIGNUM USECS
Package

periods

Source

periods.lisp (file)

Function: set-millisecond-part BIGNUM MSECS
Package

periods

Source

periods.lisp (file)

Function: set-nanosecond-part BIGNUM NSECS
Package

periods

Source

periods.lisp (file)

Function: subtract-days DURATION DAYS
Package

periods

Source

periods.lisp (file)

Function: subtract-hours DURATION HOURS
Package

periods

Source

periods.lisp (file)

Function: subtract-microseconds DURATION MICROSECONDS
Package

periods

Source

periods.lisp (file)

Function: subtract-milliseconds DURATION MILLISECONDS
Package

periods

Source

periods.lisp (file)

Function: subtract-minutes DURATION MINUTES
Package

periods

Source

periods.lisp (file)

Function: subtract-months DURATION MONTHS
Package

periods

Source

periods.lisp (file)

Function: subtract-nanoseconds DURATION NANOSECONDS
Package

periods

Source

periods.lisp (file)

Function: subtract-seconds DURATION SECONDS
Package

periods

Source

periods.lisp (file)

Function: subtract-years DURATION YEARS
Package

periods

Source

periods.lisp (file)

Function: sunday-week-begin ANCHOR
Package

periods

Source

periods.lisp (file)

Function: sunday-week-end ANCHOR &key INCLUSIVE-P
Package

periods

Source

periods.lisp (file)

Function: sunday-week-range FIXED-TIME &key BEGIN-INCLUSIVE-P END-INCLUSIVE-P
Package

periods

Source

periods.lisp (file)

Function: this-day &optional FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: this-day-range ()
Package

periods

Source

periods.lisp (file)

Function: this-friday ANCHOR &key REVERSE
Package

periods

Source

periods.lisp (file)

Function: this-hour &optional FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: this-hour-range ()
Package

periods

Source

periods.lisp (file)

Function: this-microsecond &optional FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: this-millisecond &optional FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: this-minute &optional FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: this-minute-range ()
Package

periods

Source

periods.lisp (file)

Function: this-monday ANCHOR &key REVERSE
Package

periods

Source

periods.lisp (file)

Function: this-monday-week &optional FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: this-monday-week-range ()
Package

periods

Source

periods.lisp (file)

Function: this-month &optional FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: this-month-range ()
Package

periods

Source

periods.lisp (file)

Function: this-saturday ANCHOR &key REVERSE
Package

periods

Source

periods.lisp (file)

Function: this-second &optional FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: this-second-range ()
Package

periods

Source

periods.lisp (file)

Function: this-sunday ANCHOR &key REVERSE
Package

periods

Source

periods.lisp (file)

Function: this-sunday-week &optional FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: this-sunday-week-range ()
Package

periods

Source

periods.lisp (file)

Function: this-thursday ANCHOR &key REVERSE
Package

periods

Source

periods.lisp (file)

Function: this-tuesday ANCHOR &key REVERSE
Package

periods

Source

periods.lisp (file)

Function: this-wednesday ANCHOR &key REVERSE
Package

periods

Source

periods.lisp (file)

Function: this-year &optional FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: this-year-range ()
Package

periods

Source

periods.lisp (file)

Function: time-generator START DURATION &key REVERSE
Package

periods

Source

periods.lisp (file)

Function: time-parser-tests ()
Package

periods

Source

parser.lisp (file)

Function: time-period-begin PERIOD
Package

periods

Source

periods.lisp (file)

Function: time-period-end PERIOD
Package

periods

Source

periods.lisp (file)

Function: time-period-p OBJECT
Package

periods

Source

periods.lisp (file)

Function: time-period-range INSTANCE
Function: (setf time-period-range) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: time-period-skip INSTANCE
Function: (setf time-period-skip) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: time-period-step INSTANCE
Function: (setf time-period-step) VALUE INSTANCE
Package

periods

Source

periods.lisp (file)

Function: time-range-anchor RANGE
Package

periods

Source

periods.lisp (file)

Function: time-range-begin-inclusive-p RANGE
Package

periods

Source

periods.lisp (file)

Function: time-range-end-inclusive-p RANGE
Package

periods

Source

periods.lisp (file)

Function: time-range-next RANGE
Package

periods

Source

periods.lisp (file)

Function: time-range-p OBJECT
Package

periods

Source

periods.lisp (file)

Function: time-range-previous RANGE
Package

periods

Source

periods.lisp (file)

Function: time-stepper DURATION &key REVERSE
Package

periods

Source

periods.lisp (file)

Function: time-within-begin-end-p FIXED-TIME BEGIN END
Package

periods

Source

periods.lisp (file)

Function: unread-token IN TOKEN
Package

periods

Source

parser.lisp (file)

Function: year-begin ANCHOR
Package

periods

Source

periods.lisp (file)

Function: year-end ANCHOR &key INCLUSIVE-P
Package

periods

Source

periods.lisp (file)

Function: year-of FIXED-TIME
Package

periods

Source

periods.lisp (file)

Function: year-range FIXED-TIME &key BEGIN-INCLUSIVE-P END-INCLUSIVE-P
Package

periods

Source

periods.lisp (file)


Previous: , Up: Internal definitions   [Contents][Index]

5.2.4 Structures

Structure: relative-time ()
Package

periods

Source

periods.lisp (file)

Direct superclasses

structure-object (structure)

Direct slots
Slot: year
Type

(or keyword integer null)

Readers

relative-time-year (function)

Writers

(setf relative-time-year) (function)

Slot: month
Type

(or keyword integer null)

Readers

relative-time-month (function)

Writers

(setf relative-time-month) (function)

Slot: week
Type

(or keyword integer null)

Readers

relative-time-week (function)

Writers

(setf relative-time-week) (function)

Slot: day-of-week
Type

(or keyword integer null)

Readers

relative-time-day-of-week (function)

Writers

(setf relative-time-day-of-week) (function)

Slot: day
Type

(or keyword integer null)

Readers

relative-time-day (function)

Writers

(setf relative-time-day) (function)

Slot: hour
Type

(or keyword integer null)

Readers

relative-time-hour (function)

Writers

(setf relative-time-hour) (function)

Slot: minute
Type

(or keyword integer null)

Readers

relative-time-minute (function)

Writers

(setf relative-time-minute) (function)

Slot: second
Type

(or keyword integer null)

Readers

relative-time-second (function)

Writers

(setf relative-time-second) (function)

Slot: millisecond
Type

(or keyword integer null)

Readers

relative-time-millisecond (function)

Writers

(setf relative-time-millisecond) (function)

Slot: microsecond
Type

(or keyword integer null)

Readers

relative-time-microsecond (function)

Writers

(setf relative-time-microsecond) (function)

Slot: nanosecond
Type

(or keyword integer null)

Readers

relative-time-nanosecond (function)

Writers

(setf relative-time-nanosecond) (function)


Previous: , Up: Top   [Contents][Index]

Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts

Jump to:   F   L   P  
Index Entry  Section

F
File, Lisp, periods.asd: The periods<dot>asd file
File, Lisp, periods/parser.lisp: The periods/parser<dot>lisp file
File, Lisp, periods/periods.lisp: The periods/periods<dot>lisp file
File, Lisp, periods/strptime.lisp: The periods/strptime<dot>lisp file

L
Lisp File, periods.asd: The periods<dot>asd file
Lisp File, periods/parser.lisp: The periods/parser<dot>lisp file
Lisp File, periods/periods.lisp: The periods/periods<dot>lisp file
Lisp File, periods/strptime.lisp: The periods/strptime<dot>lisp file

P
periods.asd: The periods<dot>asd file
periods/parser.lisp: The periods/parser<dot>lisp file
periods/periods.lisp: The periods/periods<dot>lisp file
periods/strptime.lisp: The periods/strptime<dot>lisp file

Jump to:   F   L   P  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   (  
A   B   C   D   E   F   G   H   I   L   M   N   P   R   S   T   U   W   Y  
Index Entry  Section

(
(setf duration-days): Internal functions
(setf duration-hours): Internal functions
(setf duration-microseconds): Internal functions
(setf duration-milliseconds): Internal functions
(setf duration-minutes): Internal functions
(setf duration-months): Internal functions
(setf duration-nanoseconds): Internal functions
(setf duration-seconds): Exported functions
(setf duration-years): Internal functions
(setf get-range-anchor): Internal functions
(setf get-range-begin): Internal functions
(setf get-range-begin-inclusive-p): Internal functions
(setf get-range-duration): Internal functions
(setf get-range-end): Internal functions
(setf get-range-end-inclusive-p): Internal functions
(setf get-range-fixed-begin): Internal functions
(setf get-range-fixed-end): Internal functions
(setf relative-time-day): Internal functions
(setf relative-time-day-of-week): Internal functions
(setf relative-time-hour): Internal functions
(setf relative-time-microsecond): Internal functions
(setf relative-time-millisecond): Internal functions
(setf relative-time-minute): Internal functions
(setf relative-time-month): Internal functions
(setf relative-time-nanosecond): Internal functions
(setf relative-time-second): Internal functions
(setf relative-time-week): Internal functions
(setf relative-time-year): Internal functions
(setf time-period-range): Internal functions
(setf time-period-skip): Internal functions
(setf time-period-step): Internal functions
(setf time-range-begin): Exported functions

A
add-days: Internal functions
add-duration: Exported functions
add-hours: Internal functions
add-microseconds: Internal functions
add-milliseconds: Internal functions
add-minutes: Internal functions
add-months: Internal functions
add-nanoseconds: Internal functions
add-seconds: Internal functions
add-time: Exported functions
add-years: Internal functions

B
bounded-add: Internal functions
bounded-subtract: Internal functions

C
compile-duration: Internal functions
compile-relative-time: Internal functions
compile-time: Internal functions
copy-duration: Internal functions
copy-relative-time: Internal functions
copy-time-period: Internal functions
copy-time-range: Internal functions
current-year: Exported functions

D
day-begin: Internal functions
day-end: Internal functions
day-of: Internal functions
day-of-week: Exported functions
day-range: Internal functions
days-in-month: Internal functions
details-match-relative-time-p: Internal functions
do-relative-times: Internal macros
do-time-period: Internal macros
do-times: Internal macros
duration: Exported functions
duration-days: Internal functions
duration-hours: Internal functions
duration-microseconds: Internal functions
duration-milliseconds: Internal functions
duration-minutes: Internal functions
duration-months: Internal functions
duration-nanoseconds: Internal functions
duration-p: Internal functions
duration-seconds: Exported functions
duration-years: Internal functions

E
enclosing-duration: Internal functions

F
falls-on-weekend-p: Exported functions
find-smallest-resolution: Exported functions
fixed-time: Exported functions
floor-time: Exported functions
Function, (setf duration-days): Internal functions
Function, (setf duration-hours): Internal functions
Function, (setf duration-microseconds): Internal functions
Function, (setf duration-milliseconds): Internal functions
Function, (setf duration-minutes): Internal functions
Function, (setf duration-months): Internal functions
Function, (setf duration-nanoseconds): Internal functions
Function, (setf duration-seconds): Exported functions
Function, (setf duration-years): Internal functions
Function, (setf get-range-anchor): Internal functions
Function, (setf get-range-begin): Internal functions
Function, (setf get-range-begin-inclusive-p): Internal functions
Function, (setf get-range-duration): Internal functions
Function, (setf get-range-end): Internal functions
Function, (setf get-range-end-inclusive-p): Internal functions
Function, (setf get-range-fixed-begin): Internal functions
Function, (setf get-range-fixed-end): Internal functions
Function, (setf relative-time-day): Internal functions
Function, (setf relative-time-day-of-week): Internal functions
Function, (setf relative-time-hour): Internal functions
Function, (setf relative-time-microsecond): Internal functions
Function, (setf relative-time-millisecond): Internal functions
Function, (setf relative-time-minute): Internal functions
Function, (setf relative-time-month): Internal functions
Function, (setf relative-time-nanosecond): Internal functions
Function, (setf relative-time-second): Internal functions
Function, (setf relative-time-week): Internal functions
Function, (setf relative-time-year): Internal functions
Function, (setf time-period-range): Internal functions
Function, (setf time-period-skip): Internal functions
Function, (setf time-period-step): Internal functions
Function, add-days: Internal functions
Function, add-duration: Exported functions
Function, add-hours: Internal functions
Function, add-microseconds: Internal functions
Function, add-milliseconds: Internal functions
Function, add-minutes: Internal functions
Function, add-months: Internal functions
Function, add-nanoseconds: Internal functions
Function, add-seconds: Internal functions
Function, add-time: Exported functions
Function, add-years: Internal functions
Function, bounded-add: Internal functions
Function, bounded-subtract: Internal functions
Function, compile-duration: Internal functions
Function, compile-relative-time: Internal functions
Function, compile-time: Internal functions
Function, copy-duration: Internal functions
Function, copy-relative-time: Internal functions
Function, copy-time-period: Internal functions
Function, copy-time-range: Internal functions
Function, current-year: Exported functions
Function, day-begin: Internal functions
Function, day-end: Internal functions
Function, day-of: Internal functions
Function, day-of-week: Exported functions
Function, day-range: Internal functions
Function, days-in-month: Internal functions
Function, details-match-relative-time-p: Internal functions
Function, duration: Exported functions
Function, duration-days: Internal functions
Function, duration-hours: Internal functions
Function, duration-microseconds: Internal functions
Function, duration-milliseconds: Internal functions
Function, duration-minutes: Internal functions
Function, duration-months: Internal functions
Function, duration-nanoseconds: Internal functions
Function, duration-p: Internal functions
Function, duration-seconds: Exported functions
Function, duration-years: Internal functions
Function, enclosing-duration: Internal functions
Function, falls-on-weekend-p: Exported functions
Function, find-smallest-resolution: Exported functions
Function, fixed-time: Exported functions
Function, floor-time: Exported functions
Function, get-range-anchor: Internal functions
Function, get-range-begin: Internal functions
Function, get-range-begin-inclusive-p: Internal functions
Function, get-range-duration: Internal functions
Function, get-range-end: Internal functions
Function, get-range-end-inclusive-p: Internal functions
Function, get-range-fixed-begin: Internal functions
Function, get-range-fixed-end: Internal functions
Function, hour-begin: Internal functions
Function, hour-end: Internal functions
Function, hour-of: Internal functions
Function, hour-range: Internal functions
Function, ignore-character: Internal functions
Function, leapp: Exported functions
Function, make-duration: Internal functions
Function, make-duration-relative: Internal functions
Function, make-relative-time: Internal functions
Function, make-time-period: Internal functions
Function, make-time-range: Internal functions
Function, matches-relative-time-p: Internal functions
Function, microsecond-begin: Internal functions
Function, microsecond-end: Internal functions
Function, microsecond-of: Internal functions
Function, microsecond-part: Internal functions
Function, millisecond-begin: Internal functions
Function, millisecond-end: Internal functions
Function, millisecond-of: Internal functions
Function, millisecond-part: Internal functions
Function, minute-begin: Internal functions
Function, minute-end: Internal functions
Function, minute-of: Internal functions
Function, minute-range: Internal functions
Function, monday-week-begin: Internal functions
Function, monday-week-end: Internal functions
Function, monday-week-range: Internal functions
Function, month-begin: Internal functions
Function, month-end: Internal functions
Function, month-of: Internal functions
Function, month-range: Internal functions
Function, multiply-duration: Internal functions
Function, nanosecond-of: Internal functions
Function, nanosecond-part: Internal functions
Function, next-day: Internal functions
Function, next-friday: Internal functions
Function, next-hour: Internal functions
Function, next-microsecond: Internal functions
Function, next-millisecond: Internal functions
Function, next-minute: Internal functions
Function, next-monday: Internal functions
Function, next-monday-week: Internal functions
Function, next-month: Internal functions
Function, next-saturday: Internal functions
Function, next-second: Internal functions
Function, next-sunday: Internal functions
Function, next-sunday-week: Internal functions
Function, next-thursday: Internal functions
Function, next-time: Internal functions
Function, next-tuesday: Internal functions
Function, next-wednesday: Internal functions
Function, next-year: Internal functions
Function, p/cardinal: Internal functions
Function, p/days-of-week: Internal functions
Function, p/duration-spec: Internal functions
Function, p/fixed-time: Internal functions
Function, p/months-of-year: Internal functions
Function, p/number: Internal functions
Function, p/ordinal: Internal functions
Function, p/period-unit: Internal functions
Function, p/qualified-time: Internal functions
Function, p/relative-time: Internal functions
Function, p/time: Internal functions
Function, p/time-duration: Internal functions
Function, p/time-reference: Internal functions
Function, p/time-unit: Internal functions
Function, parse-time-period: Exported functions
Function, parse-time-range: Exported functions
Function, peek-token: Internal functions
Function, previous-day: Internal functions
Function, previous-friday: Internal functions
Function, previous-hour: Internal functions
Function, previous-millisecond: Internal functions
Function, previous-minute: Internal functions
Function, previous-monday: Internal functions
Function, previous-monday-week: Internal functions
Function, previous-month: Internal functions
Function, previous-nanosecond: Internal functions
Function, previous-saturday: Internal functions
Function, previous-second: Internal functions
Function, previous-sunday: Internal functions
Function, previous-sunday-week: Internal functions
Function, previous-thursday: Internal functions
Function, previous-time: Internal functions
Function, previous-tuesday: Internal functions
Function, previous-wednesday: Internal functions
Function, previous-year: Internal functions
Function, range-dec: Internal functions
Function, range-inc: Internal functions
Function, read-fixed-time: Exported functions
Function, read-from-stream: Internal functions
Function, read-integer: Internal functions
Function, read-token: Internal functions
Function, relative-time: Internal functions
Function, relative-time-day: Internal functions
Function, relative-time-day-of-week: Internal functions
Function, relative-time-generator: Internal functions
Function, relative-time-hour: Internal functions
Function, relative-time-microsecond: Internal functions
Function, relative-time-millisecond: Internal functions
Function, relative-time-minute: Internal functions
Function, relative-time-month: Internal functions
Function, relative-time-nanosecond: Internal functions
Function, relative-time-p: Internal functions
Function, relative-time-second: Internal functions
Function, relative-time-stepper: Internal functions
Function, relative-time-week: Internal functions
Function, relative-time-year: Internal functions
Function, second-begin: Internal functions
Function, second-end: Internal functions
Function, second-of: Internal functions
Function, second-range: Internal functions
Function, set-microsecond-part: Internal functions
Function, set-millisecond-part: Internal functions
Function, set-nanosecond-part: Internal functions
Function, sleep-until: Exported functions
Function, strftime: Exported functions
Function, strptime: Exported functions
Function, strptime-decoded: Exported functions
Function, subtract-days: Internal functions
Function, subtract-duration: Exported functions
Function, subtract-hours: Internal functions
Function, subtract-microseconds: Internal functions
Function, subtract-milliseconds: Internal functions
Function, subtract-minutes: Internal functions
Function, subtract-months: Internal functions
Function, subtract-nanoseconds: Internal functions
Function, subtract-seconds: Internal functions
Function, subtract-time: Exported functions
Function, subtract-years: Internal functions
Function, sunday-week-begin: Internal functions
Function, sunday-week-end: Internal functions
Function, sunday-week-range: Internal functions
Function, this-day: Internal functions
Function, this-day-range: Internal functions
Function, this-friday: Internal functions
Function, this-hour: Internal functions
Function, this-hour-range: Internal functions
Function, this-microsecond: Internal functions
Function, this-millisecond: Internal functions
Function, this-minute: Internal functions
Function, this-minute-range: Internal functions
Function, this-monday: Internal functions
Function, this-monday-week: Internal functions
Function, this-monday-week-range: Internal functions
Function, this-month: Internal functions
Function, this-month-range: Internal functions
Function, this-saturday: Internal functions
Function, this-second: Internal functions
Function, this-second-range: Internal functions
Function, this-sunday: Internal functions
Function, this-sunday-week: Internal functions
Function, this-sunday-week-range: Internal functions
Function, this-thursday: Internal functions
Function, this-tuesday: Internal functions
Function, this-wednesday: Internal functions
Function, this-year: Internal functions
Function, this-year-range: Internal functions
Function, time-difference: Exported functions
Function, time-generator: Internal functions
Function, time-parser-tests: Internal functions
Function, time-period: Exported functions
Function, time-period-begin: Internal functions
Function, time-period-end: Internal functions
Function, time-period-generator: Exported functions
Function, time-period-p: Internal functions
Function, time-period-range: Internal functions
Function, time-period-skip: Internal functions
Function, time-period-step: Internal functions
Function, time-range: Exported functions
Function, time-range-anchor: Internal functions
Function, time-range-begin: Exported functions
Function, time-range-begin-inclusive-p: Internal functions
Function, time-range-duration: Exported functions
Function, time-range-end: Exported functions
Function, time-range-end-inclusive-p: Internal functions
Function, time-range-next: Internal functions
Function, time-range-p: Internal functions
Function, time-range-previous: Internal functions
Function, time-stepper: Internal functions
Function, time-within-begin-end-p: Internal functions
Function, time-within-range-p: Exported functions
Function, unread-token: Internal functions
Function, year-begin: Internal functions
Function, year-end: Internal functions
Function, year-of: Internal functions
Function, year-range: Internal functions

G
get-range-anchor: Internal functions
get-range-begin: Internal functions
get-range-begin-inclusive-p: Internal functions
get-range-duration: Internal functions
get-range-end: Internal functions
get-range-end-inclusive-p: Internal functions
get-range-fixed-begin: Internal functions
get-range-fixed-end: Internal functions

H
hour-begin: Internal functions
hour-end: Internal functions
hour-of: Internal functions
hour-range: Internal functions

I
if-let: Internal macros
ignore-character: Internal functions

L
leapp: Exported functions
list-relative-times: Internal macros
list-time-period: Internal macros
list-times: Internal macros
loop-relative-times: Internal macros
loop-time-period: Internal macros
loop-times: Internal macros

M
Macro, do-relative-times: Internal macros
Macro, do-time-period: Internal macros
Macro, do-times: Internal macros
Macro, if-let: Internal macros
Macro, list-relative-times: Internal macros
Macro, list-time-period: Internal macros
Macro, list-times: Internal macros
Macro, loop-relative-times: Internal macros
Macro, loop-time-period: Internal macros
Macro, loop-times: Internal macros
Macro, map-relative-times: Internal macros
Macro, map-time-period: Internal macros
Macro, map-times: Internal macros
Macro, with-skippers: Internal macros
Macro, with-timestamp-range: Exported macros
make-duration: Internal functions
make-duration-relative: Internal functions
make-relative-time: Internal functions
make-time-period: Internal functions
make-time-range: Internal functions
map-relative-times: Internal macros
map-time-period: Internal macros
map-times: Internal macros
matches-relative-time-p: Internal functions
microsecond-begin: Internal functions
microsecond-end: Internal functions
microsecond-of: Internal functions
microsecond-part: Internal functions
millisecond-begin: Internal functions
millisecond-end: Internal functions
millisecond-of: Internal functions
millisecond-part: Internal functions
minute-begin: Internal functions
minute-end: Internal functions
minute-of: Internal functions
minute-range: Internal functions
monday-week-begin: Internal functions
monday-week-end: Internal functions
monday-week-range: Internal functions
month-begin: Internal functions
month-end: Internal functions
month-of: Internal functions
month-range: Internal functions
multiply-duration: Internal functions

N
nanosecond-of: Internal functions
nanosecond-part: Internal functions
next-day: Internal functions
next-friday: Internal functions
next-hour: Internal functions
next-microsecond: Internal functions
next-millisecond: Internal functions
next-minute: Internal functions
next-monday: Internal functions
next-monday-week: Internal functions
next-month: Internal functions
next-saturday: Internal functions
next-second: Internal functions
next-sunday: Internal functions
next-sunday-week: Internal functions
next-thursday: Internal functions
next-time: Internal functions
next-tuesday: Internal functions
next-wednesday: Internal functions
next-year: Internal functions

P
p/cardinal: Internal functions
p/days-of-week: Internal functions
p/duration-spec: Internal functions
p/fixed-time: Internal functions
p/months-of-year: Internal functions
p/number: Internal functions
p/ordinal: Internal functions
p/period-unit: Internal functions
p/qualified-time: Internal functions
p/relative-time: Internal functions
p/time: Internal functions
p/time-duration: Internal functions
p/time-reference: Internal functions
p/time-unit: Internal functions
parse-time-period: Exported functions
parse-time-range: Exported functions
peek-token: Internal functions
previous-day: Internal functions
previous-friday: Internal functions
previous-hour: Internal functions
previous-millisecond: Internal functions
previous-minute: Internal functions
previous-monday: Internal functions
previous-monday-week: Internal functions
previous-month: Internal functions
previous-nanosecond: Internal functions
previous-saturday: Internal functions
previous-second: Internal functions
previous-sunday: Internal functions
previous-sunday-week: Internal functions
previous-thursday: Internal functions
previous-time: Internal functions
previous-tuesday: Internal functions
previous-wednesday: Internal functions
previous-year: Internal functions

R
range-dec: Internal functions
range-inc: Internal functions
read-fixed-time: Exported functions
read-from-stream: Internal functions
read-integer: Internal functions
read-token: Internal functions
relative-time: Internal functions
relative-time-day: Internal functions
relative-time-day-of-week: Internal functions
relative-time-generator: Internal functions
relative-time-hour: Internal functions
relative-time-microsecond: Internal functions
relative-time-millisecond: Internal functions
relative-time-minute: Internal functions
relative-time-month: Internal functions
relative-time-nanosecond: Internal functions
relative-time-p: Internal functions
relative-time-second: Internal functions
relative-time-stepper: Internal functions
relative-time-week: Internal functions
relative-time-year: Internal functions

S
second-begin: Internal functions
second-end: Internal functions
second-of: Internal functions
second-range: Internal functions
set-microsecond-part: Internal functions
set-millisecond-part: Internal functions
set-nanosecond-part: Internal functions
Setf Expander, (setf time-range-begin): Exported functions
sleep-until: Exported functions
strftime: Exported functions
strptime: Exported functions
strptime-decoded: Exported functions
subtract-days: Internal functions
subtract-duration: Exported functions
subtract-hours: Internal functions
subtract-microseconds: Internal functions
subtract-milliseconds: Internal functions
subtract-minutes: Internal functions
subtract-months: Internal functions
subtract-nanoseconds: Internal functions
subtract-seconds: Internal functions
subtract-time: Exported functions
subtract-years: Internal functions
sunday-week-begin: Internal functions
sunday-week-end: Internal functions
sunday-week-range: Internal functions

T
this-day: Internal functions
this-day-range: Internal functions
this-friday: Internal functions
this-hour: Internal functions
this-hour-range: Internal functions
this-microsecond: Internal functions
this-millisecond: Internal functions
this-minute: Internal functions
this-minute-range: Internal functions
this-monday: Internal functions
this-monday-week: Internal functions
this-monday-week-range: Internal functions
this-month: Internal functions
this-month-range: Internal functions
this-saturday: Internal functions
this-second: Internal functions
this-second-range: Internal functions
this-sunday: Internal functions
this-sunday-week: Internal functions
this-sunday-week-range: Internal functions
this-thursday: Internal functions
this-tuesday: Internal functions
this-wednesday: Internal functions
this-year: Internal functions
this-year-range: Internal functions
time-difference: Exported functions
time-generator: Internal functions
time-parser-tests: Internal functions
time-period: Exported functions
time-period-begin: Internal functions
time-period-end: Internal functions
time-period-generator: Exported functions
time-period-p: Internal functions
time-period-range: Internal functions
time-period-skip: Internal functions
time-period-step: Internal functions
time-range: Exported functions
time-range-anchor: Internal functions
time-range-begin: Exported functions
time-range-begin-inclusive-p: Internal functions
time-range-duration: Exported functions
time-range-end: Exported functions
time-range-end-inclusive-p: Internal functions
time-range-next: Internal functions
time-range-p: Internal functions
time-range-previous: Internal functions
time-stepper: Internal functions
time-within-begin-end-p: Internal functions
time-within-range-p: Exported functions

U
unread-token: Internal functions

W
with-skippers: Internal macros
with-timestamp-range: Exported macros

Y
year-begin: Internal functions
year-end: Internal functions
year-of: Internal functions
year-range: Internal functions

Jump to:   (  
A   B   C   D   E   F   G   H   I   L   M   N   P   R   S   T   U   W   Y  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.3 Variables

Jump to:   *  
A   B   D   E   F   H   M   N   R   S   W   Y  
Index Entry  Section

*
*date-readtable*: Internal special variables
*days-in-months*: Internal special variables
*input-time-format*: Exported special variables
*output-time-format*: Exported special variables
*parser-readtable*: Internal special variables
*token-stack*: Internal special variables

A
anchor: Exported structures

B
begin: Exported structures
begin-inclusive-p: Exported structures

D
day: Internal structures
day-of-week: Internal structures
days: Exported structures
duration: Exported structures

E
end: Exported structures
end-inclusive-p: Exported structures

F
fixed-begin: Exported structures
fixed-end: Exported structures

H
hour: Internal structures
hours: Exported structures

M
microsecond: Internal structures
microseconds: Exported structures
millisecond: Internal structures
milliseconds: Exported structures
minute: Internal structures
minutes: Exported structures
month: Internal structures
months: Exported structures

N
nanosecond: Internal structures
nanoseconds: Exported structures

R
range: Exported structures

S
second: Internal structures
seconds: Exported structures
skip: Exported structures
Slot, anchor: Exported structures
Slot, begin: Exported structures
Slot, begin-inclusive-p: Exported structures
Slot, day: Internal structures
Slot, day-of-week: Internal structures
Slot, days: Exported structures
Slot, duration: Exported structures
Slot, end: Exported structures
Slot, end-inclusive-p: Exported structures
Slot, fixed-begin: Exported structures
Slot, fixed-end: Exported structures
Slot, hour: Internal structures
Slot, hours: Exported structures
Slot, microsecond: Internal structures
Slot, microseconds: Exported structures
Slot, millisecond: Internal structures
Slot, milliseconds: Exported structures
Slot, minute: Internal structures
Slot, minutes: Exported structures
Slot, month: Internal structures
Slot, months: Exported structures
Slot, nanosecond: Internal structures
Slot, nanoseconds: Exported structures
Slot, range: Exported structures
Slot, second: Internal structures
Slot, seconds: Exported structures
Slot, skip: Exported structures
Slot, step: Exported structures
Slot, week: Internal structures
Slot, year: Internal structures
Slot, years: Exported structures
Special Variable, *date-readtable*: Internal special variables
Special Variable, *days-in-months*: Internal special variables
Special Variable, *input-time-format*: Exported special variables
Special Variable, *output-time-format*: Exported special variables
Special Variable, *parser-readtable*: Internal special variables
Special Variable, *token-stack*: Internal special variables
step: Exported structures

W
week: Internal structures

Y
year: Internal structures
years: Exported structures

Jump to:   *  
A   B   D   E   F   H   M   N   R   S   W   Y  

Previous: , Up: Indexes   [Contents][Index]

A.4 Data types

Jump to:   D   F   P   R   S   T  
Index Entry  Section

D
duration: Exported structures

F
fixed-time: Exported types

P
Package, periods: The periods package
periods: The periods system
periods: The periods package

R
relative-time: Internal structures

S
Structure, duration: Exported structures
Structure, relative-time: Internal structures
Structure, time-period: Exported structures
Structure, time-range: Exported structures
System, periods: The periods system

T
time-period: Exported structures
time-range: Exported structures
Type, fixed-time: Exported types

Jump to:   D   F   P   R   S   T