This is the date-calc Reference Manual, version 0.2, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Sep 15 05:00:01 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
date-calc
Package for simple date calculation
Paul M. Rodriguez <pmr@ruricolist.com>
Heiko Schröter <schroete@iup.physik.uni-bremen.de>
GPL or Artistic
0.2
date-calc.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
date-calc/date-calc.lisp
date-calc
(system).
*language*
(special variable).
add-delta-days
(function).
add-delta-dhms
(function).
add-delta-ym
(function).
add-delta-ymd
(function).
add-delta-ymdhms
(function).
add-year-month
(function).
business-to-standard
(function).
center
(function).
check-business-p
(function).
check-date
(function).
check-time-p
(function).
cl-business-to-standard
(function).
cl-check-business-p
(function).
cl-day-of-week
(function).
cl-decode-day-of-week
(function).
cl-nth-weekday-of-month-year
(function).
cl-standard-to-business
(function).
cl-system-clock
(function).
cl-weeks-in-year
(function).
date-to-days
(function).
date-to-text
(function).
date-to-text-long
(function).
day-of-week
(function).
day-of-year
(function).
days-in-month
(function).
days-in-year
(function).
decode-day-of-week
(function).
decode-language
(function).
decode-month
(function).
delta-days
(function).
delta-dhms
(function).
delta-hms
(function).
delta-ymd
(function).
delta-ymdhms
(function).
fixed-window
(function).
gmtime
(function).
iso-lc
(function).
iso-uc
(function).
leap-year
(function).
leap-year-p
(function).
localtime
(function).
monday-of-week
(function).
normalize-dhms
(function).
now
(function).
nth-weekday-of-month-year
(function).
standard-to-business
(function).
system-clock
(function).
this-year
(function).
today
(function).
today-and-now
(function).
tomorrow
(function).
valid-month-p
(function).
valid-year-p
(function).
week-number
(function).
week-of-year
(function).
weeks-in-year
(function).
year-to-days
(function).
yesterday
(function).
century-of-epoc
(special variable).
day-of-week-abbreviation
(special variable).
day-of-week-to-text
(function).
days-in-month-arr
(special variable).
days-in-year-arr
(special variable).
epoc
(special variable).
language-to-text
(special variable).
languages
(special variable).
long-format
(special variable).
month-to-text
(special variable).
normalize-ranges
(function).
normalize-signs
(function).
normalize-time
(function).
year-of-epoc
(special variable).
Packages are listed by definition order.
date-calc
common-lisp
.
*language*
(special variable).
add-delta-days
(function).
add-delta-dhms
(function).
add-delta-ym
(function).
add-delta-ymd
(function).
add-delta-ymdhms
(function).
add-year-month
(function).
business-to-standard
(function).
center
(function).
check-business-p
(function).
check-date
(function).
check-time-p
(function).
cl-business-to-standard
(function).
cl-check-business-p
(function).
cl-day-of-week
(function).
cl-decode-day-of-week
(function).
cl-nth-weekday-of-month-year
(function).
cl-standard-to-business
(function).
cl-system-clock
(function).
cl-weeks-in-year
(function).
date-to-days
(function).
date-to-text
(function).
date-to-text-long
(function).
day-of-week
(function).
day-of-year
(function).
days-in-month
(function).
days-in-year
(function).
decode-day-of-week
(function).
decode-language
(function).
decode-month
(function).
delta-days
(function).
delta-dhms
(function).
delta-hms
(function).
delta-ymd
(function).
delta-ymdhms
(function).
fixed-window
(function).
gmtime
(function).
iso-lc
(function).
iso-uc
(function).
leap-year
(function).
leap-year-p
(function).
localtime
(function).
monday-of-week
(function).
normalize-dhms
(function).
now
(function).
nth-weekday-of-month-year
(function).
standard-to-business
(function).
system-clock
(function).
this-year
(function).
today
(function).
today-and-now
(function).
tomorrow
(function).
valid-month-p
(function).
valid-year-p
(function).
week-number
(function).
week-of-year
(function).
weeks-in-year
(function).
year-to-days
(function).
yesterday
(function).
century-of-epoc
(special variable).
day-of-week-abbreviation
(special variable).
day-of-week-to-text
(function).
days-in-month-arr
(special variable).
days-in-year-arr
(special variable).
epoc
(special variable).
language-to-text
(special variable).
languages
(special variable).
long-format
(special variable).
month-to-text
(special variable).
normalize-ranges
(function).
normalize-signs
(function).
normalize-time
(function).
year-of-epoc
(special variable).
Definitions are sorted by export status, category, package, and then by lexicographic order.
This function returns (values year month day) such that it is YEAR MONTH DAY plus DELTA days
This function serves to add a days, hours, minutes and seconds offset to a given date and time (YEAR MONTH DAY HOUR MINUTE SECOND DDAY DHOUR DMINUTE DSECOND), in order to answer questions like "today and now plus 7 days but minus 5 hours and then plus 30 minutes, what date and time gives that?". Returns: (values y m d h min sec)
This function adds DYEAR and DMONTH offset to YEAR MONTH DAY.
This function adds DYEAR DMONTH and DDAY offset to YEAR MONTH DAY.
This function is the same as add-delta-ymd except that a time offset may be given in addition to the year, month and day offset
This function adds DYEAR and DMONTH offset to YEAR and MONTH.
This function converts a given date from business notation YEAR WEEK DOW to standard notation year month day. DOW is not CL conform.
Return a string that is WIDTH long with STRING centered in it.
This function returns true if the given three numerical values YEAR WEEK DOW constitute a valid date in business format, and nil otherwise. Beware that this function does NOT compute whether a given date is a business day (i.e., Monday to Friday)! To do so, use (< (day-of-week year month day) 6) instead. DOW not CL conform.
This function returns t if the given three numerical values YEAR MONTH DAY constitute a valid date, and nil otherwise.
This function returns t if the given three numerical values HOUR MIN SEC constitute a valid time, and nil otherwise.
This function converts a given date from business notation YEAR WEEK DOW to standard notation year month day. DOW is CL conform.
This function returns true if the given three numerical values YEAR WEEK DOW constitute a valid date in business format for CL (Monday=0), and nil otherwise. DOW is CL conform.
This function returns the DOW of YEAR MONTH DAY. DOW CL conform.
Returns number of weekday. STR can partially name the Weekday. DOW is CL conform.
This function returns the (year month day) of the N-th day of week DOW in the given MONTH and YEAR; such as, for example, the 3rd Thursday of a given month and year. DOW is CL conform.
This function converts a given date from standard notation YEAR MONTH DAY to business notation year week day of week. DOW is CL conform.
This function returns (values year month day hour min sec doy dow dst) based on current system clock. DOW is CL conform.
This function returns the number of weeks in the given YEAR for CL DOW conform numbering (Monday=0)., i.e., either 52 or 53.
This function returns the (absolute) number of the day of the given date, where counting starts at the 1.Jan 1.
Return a pretty print string of YEAR MONTH DAY in DOW-TXT(SHORT) DAY MONTH YEAR with a little bit of sorting for language.
Return a pretty print string of YEAR MONTH DAY in DOW-TXT(LONG) DAY MONTH YEAR with a little bit of sorting for language.
This function returns the DOW of YEAR MONTH DAY. DOW not CL conform.
This function returns the sum of the number of days in the months starting with January up to and including MONTH in the given year YEAR. 0 on failure.
This function returns the number of days in the given MONTH of the given YEAR.
This function returns the number of days in the given YEAR and optional MONTH. If MONTH is [1..12], return the number of days in that YEAR as of the last of that MONTH.
Returns number of weekday. STR can partially name the Weekday. DOW is not CL conform.
Returns the Language of number NUM.
Returns number of month. STR can partially name the month. Computes a (search ...:test #’char-equal).
This function returns the difference in days between Y1 M1 D1 and Y2 M2 D2.
Returns the difference in (values d h m s) between the two given dates with times (Y1 M1 D1 H1 MIN1 SEC1 and Y2 M2 D2 H2 MIN2 SEC2).
This function returns the difference of H1 M1 S1 and H2 M2 S2 in (values d h m s).
This function returns the difference (values YEAR MONTH DAYS) between the two dates Y1M1D1 and Y2M2D2.
This function returns the difference (values YEAR MONTH DAYS HOUR MINUTE SEC) between the two dates Y1 M1 D1 H1 MI1 S1 and Y2 M2 D2 H2 MI2 S2.
Convert two digit YEAR to four digit YEAR; YEAR<=70 -> 2000+YEAR; YEAR<100&&>70 -> 1900+YEAR.
Returns lower case CHAR.
Returns upper case CHAR.
This function returns 1 if the given YEAR is a leap year and 0 otherwise.
This function returns t if the given YEAR is a leap year and nil otherwise.
Return (values year month day) where month and day correspond to the Monday of WEEK in YEAR
This function takes four arbitrary values for days, hours, minutes and seconds (which may have different signs) and renormalizes them so that the values for hours, minutes and seconds will lie in the ranges [-23..23], [-59..59] and [-59..59], respectively, and so that they have the same sign.
This function returns (hour minute second) for right now.
This function returns the (year month day) of the N-th day of week DOW in the given MONTH and YEAR; such as, for example, the 3rd Thursday of a given month and year. DOW is not CL conform.
This function converts a given date from standard notation YEAR MONTH DAY to business notation year week dow. DOW is not CL conform.
This function returns (values year month day hour min sec doy dow dst) based on current system clock. DOW is not CL conform.
This function returns the current year in localtime.
This function returns (year month day) for today.
This function returns (year month day hour minute second) for the current date and time.
This function returns the number of the week of the given Y M D lies in. If the given date lies in the LAST week of the PREVIOUS year, 0 is returned.
Return (values week year) where week is the week number of YEAR
This function returns the number of weeks in the given YEAR, i.e., either 52 or 53.
Returns the number of days for YEAR since 1 Jan 1.
Century of reference (epoc)
reference year (epoc)
Year of reference (epoc)
Internal fn for normalize-dhms. Returns the normalized (values DD DH DM DS). This function prevents overflow errors on systems with short longs (e.g. 32-bits) (If need be for CL ???).
Internal fn for normalize-dhms.
Internal fn for normalize-dhms. Returns the normalized (values DD DH DM DS).
Jump to: | A B C D F G I L M N S T V W Y |
---|
Jump to: | A B C D F G I L M N S T V W Y |
---|
Jump to: | *
C D E L M S Y |
---|
Jump to: | *
C D E L M S Y |
---|
Jump to: | D F P S |
---|
Jump to: | D F P S |
---|