Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the date-calc Reference Manual, version 0.2, generated automatically by Declt version 3.0 "Montgomery Scott" on Sun May 15 04:36:21 2022 GMT+0.
• Introduction | What date-calc 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 |
This is a fork of Heiko Schröter’s Date-Calc library, a port of Perl’s Date::Calc library.
The original was dropped from Quicklisp, but I still use it, so I’m keeping it on life sup
Next: Files, Previous: Introduction, Up: Top [Contents][Index]
The main system appears first, followed by any subsystem dependency.
• The date-calc system |
Paul M. Rodriguez <pmr@ruricolist.com>
Heiko Schröter <schroete@iup.physik.uni-bremen.de>
GPL or Artistic
Package for simple date calculation
0.2
date-calc.asd (file)
date-calc.lisp (file)
Files are sorted by type and then listed depth-first from the systems components trees.
• Lisp files |
• The date-calc.asd file | ||
• The date-calc/date-calc.lisp file |
Next: The date-calc/date-calc․lisp file, Previous: Lisp files, Up: Lisp files [Contents][Index]
date-calc.asd
date-calc (system)
Previous: The date-calc․asd file, Up: Lisp files [Contents][Index]
date-calc (system)
date-calc.lisp
Next: Definitions, Previous: Files, Up: Top [Contents][Index]
Packages are listed by definition order.
• The date-calc package |
date-calc.lisp (file)
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 special variables | ||
• Exported functions |
Next: Exported functions, Previous: Exported definitions, Up: Exported definitions [Contents][Index]
date-calc.lisp (file)
Previous: Exported special variables, Up: Exported definitions [Contents][Index]
This function returns (values year month day) such that it is YEAR MONTH DAY plus DELTA days
date-calc.lisp (file)
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)
date-calc.lisp (file)
This function adds DYEAR and DMONTH offset to YEAR MONTH DAY.
date-calc.lisp (file)
This function adds DYEAR DMONTH and DDAY offset to YEAR MONTH DAY.
date-calc.lisp (file)
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
date-calc.lisp (file)
This function adds DYEAR and DMONTH offset to YEAR and MONTH.
date-calc.lisp (file)
This function converts a given date from business notation YEAR WEEK DOW to standard notation year month day. DOW is not CL conform.
date-calc.lisp (file)
Return a string that is WIDTH long with STRING centered in it.
date-calc.lisp (file)
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.
date-calc.lisp (file)
This function returns t if the given three numerical values YEAR MONTH DAY constitute a valid date, and nil otherwise.
date-calc.lisp (file)
This function returns t if the given three numerical values HOUR MIN SEC constitute a valid time, and nil otherwise.
date-calc.lisp (file)
This function converts a given date from business notation YEAR WEEK DOW to standard notation year month day. DOW is CL conform.
date-calc.lisp (file)
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.
date-calc.lisp (file)
This function returns the DOW of YEAR MONTH DAY. DOW CL conform.
date-calc.lisp (file)
Returns number of weekday. STR can partially name the Weekday. DOW is CL conform.
date-calc.lisp (file)
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.
date-calc.lisp (file)
This function converts a given date from standard notation YEAR MONTH DAY to business notation year week day of week. DOW is CL conform.
date-calc.lisp (file)
This function returns (values year month day hour min sec doy dow dst) based on current system clock. DOW is CL conform.
date-calc.lisp (file)
This function returns the number of weeks in the given YEAR for CL DOW conform numbering (Monday=0)., i.e., either 52 or 53.
date-calc.lisp (file)
This function returns the (absolute) number of the day of the given date, where counting starts at the 1.Jan 1.
date-calc.lisp (file)
Return a pretty print string of YEAR MONTH DAY in DOW-TXT(SHORT) DAY MONTH YEAR with a little bit of sorting for language.
date-calc.lisp (file)
Return a pretty print string of YEAR MONTH DAY in DOW-TXT(LONG) DAY MONTH YEAR with a little bit of sorting for language.
date-calc.lisp (file)
This function returns the DOW of YEAR MONTH DAY. DOW not CL conform.
date-calc.lisp (file)
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.
date-calc.lisp (file)
This function returns the number of days in the given MONTH of the given YEAR.
date-calc.lisp (file)
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.
date-calc.lisp (file)
Returns number of weekday. STR can partially name the Weekday. DOW is not CL conform.
date-calc.lisp (file)
Returns the Language of number NUM.
date-calc.lisp (file)
Returns number of month. STR can partially name the month. Computes a (search ...:test #’char-equal).
date-calc.lisp (file)
This function returns the difference in days between Y1 M1 D1 and Y2 M2 D2.
date-calc.lisp (file)
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).
date-calc.lisp (file)
This function returns the difference of H1 M1 S1 and H2 M2 S2 in (values d h m s).
date-calc.lisp (file)
This function returns the difference (values YEAR MONTH DAYS) between the two dates Y1M1D1 and Y2M2D2.
date-calc.lisp (file)
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.
date-calc.lisp (file)
Convert two digit YEAR to four digit YEAR; YEAR<=70 -> 2000+YEAR; YEAR<100&&>70 -> 1900+YEAR.
date-calc.lisp (file)
date-calc.lisp (file)
Returns lower case CHAR.
date-calc.lisp (file)
Returns upper case CHAR.
date-calc.lisp (file)
This function returns 1 if the given YEAR is a leap year and 0 otherwise.
date-calc.lisp (file)
This function returns t if the given YEAR is a leap year and nil otherwise.
date-calc.lisp (file)
date-calc.lisp (file)
Return (values year month day) where month and day correspond to the Monday of WEEK in YEAR
date-calc.lisp (file)
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.
date-calc.lisp (file)
This function returns (hour minute second) for right now.
date-calc.lisp (file)
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.
date-calc.lisp (file)
This function converts a given date from standard notation YEAR MONTH DAY to business notation year week dow. DOW is not CL conform.
date-calc.lisp (file)
This function returns (values year month day hour min sec doy dow dst) based on current system clock. DOW is not CL conform.
date-calc.lisp (file)
This function returns the current year in localtime.
date-calc.lisp (file)
This function returns (year month day) for today.
date-calc.lisp (file)
This function returns (year month day hour minute second) for the current date and time.
date-calc.lisp (file)
date-calc.lisp (file)
date-calc.lisp (file)
date-calc.lisp (file)
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.
date-calc.lisp (file)
Return (values week year) where week is the week number of YEAR
date-calc.lisp (file)
This function returns the number of weeks in the given YEAR, i.e., either 52 or 53.
date-calc.lisp (file)
Returns the number of days for YEAR since 1 Jan 1.
date-calc.lisp (file)
date-calc.lisp (file)
Previous: Exported definitions, Up: Definitions [Contents][Index]
• Internal special variables | ||
• Internal functions |
Next: Internal functions, Previous: Internal definitions, Up: Internal definitions [Contents][Index]
Century of reference (epoc)
date-calc.lisp (file)
date-calc.lisp (file)
date-calc.lisp (file)
date-calc.lisp (file)
reference year (epoc)
date-calc.lisp (file)
date-calc.lisp (file)
date-calc.lisp (file)
date-calc.lisp (file)
date-calc.lisp (file)
Year of reference (epoc)
date-calc.lisp (file)
Previous: Internal special variables, Up: Internal definitions [Contents][Index]
date-calc.lisp (file)
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 ???).
date-calc.lisp (file)
Internal fn for normalize-dhms.
date-calc.lisp (file)
Internal fn for normalize-dhms. Returns the normalized (values DD DH DM DS).
date-calc.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: | D F L |
---|
Jump to: | D F L |
---|
Next: Variable index, Previous: Concept index, Up: Indexes [Contents][Index]
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 |
---|
Next: Data type index, Previous: Function index, Up: Indexes [Contents][Index]
Jump to: | *
C D E L M S Y |
---|
Jump to: | *
C D E L M S Y |
---|
Previous: Variable index, Up: Indexes [Contents][Index]
Jump to: | D P S |
---|
Index Entry | Section | ||
---|---|---|---|
| |||
D | |||
date-calc : | The date-calc system | ||
date-calc : | The date-calc package | ||
| |||
P | |||
Package, date-calc : | The date-calc package | ||
| |||
S | |||
System, date-calc : | The date-calc system | ||
|
Jump to: | D P S |
---|