Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Group info
Members: 10
Language: English
Group categories: Not categorized
More group info »
Recent pages and files
lib/rw-ut    

OVERVIEW 

 

The functions R-UT and W-UT are for reading and writing lisp universal time as strings.


Universal times stored as strings using R-UT and W-UT have the following advantages over normal universal times stored as integers:

  • they are human readable and thus less prone to bugs
  • they are easier to use  with external databases or other programs that expect times dates encoded as strings
  • they are ISO-8601 compliant [by default]

GETTING RW-UT

 

Get the latest development version from the darcs repo:

 

   darcs get http://common-lisp.net/project/bpm/darcs/rw-ut

 

Or get the latest release using ASDF-install:

 

   (asdf-install:install 'rw-ut)

 

Or simply download a gzipped tarball of a specific release yourself:

DOCUMENTATION

 

The documentation is at the top of this source file.

 
;;    CL-USER> (defvar now (get-universal-time))
;;    NOW
;;
;;    CL-USER> now
;;    3425557791
;;
;;    CL-USER> (use-package :rw-ut)
;;    T
;;
;;    CL-USER> (w-ut now)
;;    "2008/07/20 15:49:51"
;;
;;    CL-USER> (r-ut *)
;;    3425557791
;;
;;    CL-USER> (eql * now)
;;    T
;;
;;    CL-USER> (w-ut now "MM-DD-YY")
;;    "07-20-08"
;;
;;    CL-USER> (r-ut * "MM-DD-YY")
;;    3425500800
;;
;;    CL-USER> (w-ut * "YYYY/MM/DD)
;;    "2008/07/20"

 

LICENSE

 

BSD (C) 2008 Nick Allen

 

Version: 
Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google