1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
<html><head><title>S-UTILS</title></head><body><h3>API for package S-UTILS</h3>
<blockquote>S-UTILS is collection of Common Lisp utilities</blockquote>
<p><b>+en-duration-unit-names+</b> <i>variable</i></p>
<blockquote>English time duration unit name constant strings</blockquote>
<blockquote>Initial value: <tt>#("year" "day" "hour" "minute" "second")</tt></blockquote>
<p><b>+us-date-format+</b> <i>variable</i></p>
<blockquote>US English style date-only format</blockquote>
<blockquote>Initial value: <tt>(:DAY-NAME #\Space :MONTH-NAME #\Space :DATE #\Space :YEAR)</tt></blockquote>
<p><b>+us-day-names+</b> <i>variable</i></p>
<blockquote>US English short day name constant strings</blockquote>
<blockquote>Initial value: <tt>("Mon" "Tue" "Wed" "Thu" "Fri" "Sat" "Sun")</tt></blockquote>
<p><b>+us-month-names+</b> <i>variable</i></p>
<blockquote>US English short month name constant strings</blockquote>
<blockquote>Initial value: <tt>("Jan" "Feb" "Mar" "Apr" "May" "Jun" "Jul" "Aug" "Sep" "Oct" "Nov" "Dec")</tt></blockquote>
<p><b>+us-time-format+</b> <i>variable</i></p>
<blockquote>US English style date-time format</blockquote>
<blockquote>Initial value: <tt>(:DAY-NAME #\Space :MONTH-NAME #\Space :DATE #\Space :YEAR #\Space :HOUR #\: :MINUTE #\: :SECOND)</tt></blockquote>
<p>(<b>copy-stream</b> in out &optional (buffer (make-string 4096))) <i>function</i></p>
<blockquote>Copy all data from input stream in to output stream out using buffer (and read/write-sequence)</blockquote>
<p>(<b>format-duration</b> seconds &key (unit-names +en-duration-unit-names+) stream) <i>function</i></p>
<blockquote>Format seconds as duration using unit-names, if stream is not nil use it, else return a string</blockquote>
<p>(<b>format-iso-gmt-time</b> universal-time &key stream) <i>function</i></p>
<blockquote>Format universal time using a simple and fast 'ISO GMT' style, if stream is not nil use it, else return a string</blockquote>
<p>(<b>format-universal-time</b> universal-time &key (format +us-time-format+) (day-names +us-day-names+) (month-names +us-month-names+) timezone stream) <i>function</i></p>
<blockquote>Format universal time using format, day-names and month-names, if stream is not nil use it, else return a string</blockquote>
<p>(<b>make-subdirectory</b> basedir subdir) <i>function</i></p>
<blockquote>Give a pathname, basedir, of a directory, create a subdirectory with name subdir</blockquote>
<p>(<b>parse-integer-safely</b> string &key (start 0) end (radix 10) default) <i>function</i></p>
<blockquote>Like parse-integer, but will return default on error, accepts nil as argument</blockquote>
<p>(<b>pathname-parent</b> pathname) <i>function</i></p>
<blockquote>Given a pathname, return the parent pathname</blockquote>
<p>(<b>tokens</b> string &key (start 0) (separators (list #\Space #\Return #\Newline #\Tab))) <i>function</i></p>
<blockquote>Split string in a list of tokens using separators, a list of characters</blockquote>
<font size=-1><p>Documentation generated by <a href="http://homepage.mac.com/svc/lispdoc/">lispdoc</a> running on LispWorks</p></font></body></html>
|