Changeset 12790 in project for chicken


Ignore:
Timestamp:
12/07/08 17:42:54 (11 years ago)
Author:
Kon Lovett
Message:

Time/string procs documented.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chicken/trunk/manual/Unit posix

    r11989 r12790  
    10011001==== time->string
    10021002
    1003  [procedure] (time->string VECTOR)
     1003 [procedure] (time->string VECTOR [FORMAT])
    10041004
    10051005Converts the broken down time represented in the 10 element vector
    1006 {{VECTOR}} into a string of the form {{"Tue May 21 13:46:22
    1007 1991"}}.
     1006{{VECTOR}} into a string of the form represented by the {{FORMAT}}
     1007string. The default time form produces something like {{"Tue May 21 13:46:22 1991"}}.
     1008
     1009The {{FORMAT}} string follows the rules for the C library procedure {{strftime}}. The default {{FORMAT}} string is "%a %b %e %H:%M:%S %Z %Y".
     1010
     1011==== string->time
     1012
     1013 [procedure] (string->time TIME [FORMAT])
     1014
     1015Converts a string of the form represented by the {{FORMAT}} string
     1016into the broken down time represented in a 10 element vector. The
     1017default time form understands something like {{"Tue May 21 13:46:22 1991"}}.
     1018
     1019The {{FORMAT}} string follows the rules for the C library procedure {{strptime}}. The default {{FORMAT}} string is "%a %b %e %H:%M:%S %Z %Y".
    10081020
    10091021
     
    12651277 set-root-directory!
    12661278 utc-time->seconds
     1279 string->time
    12671280
    12681281==== Additional Definitions
Note: See TracChangeset for help on using the changeset viewer.