Changeset 8000 in project


Ignore:
Timestamp:
01/31/08 04:00:49 (10 years ago)
Author:
kon
Message:

Docu for extd time->string & new string->time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/Unit posix

    r7932 r8000  
    958958==== time->string
    959959
    960  [procedure] (time->string VECTOR)
    961 
    962 Converts the broken down time represented in the 10 element vector
    963 {{VECTOR}} into a string of the form {{"Tue May 21 13:46:22
     960 [procedure] (time->string VECTOR [FORMAT])
     961
     962Without a {{FORMAT}} string converts the broken out time represented in the 10
     963element vector {{VECTOR}} into a string of the form {{"Tue May 21 13:46:22
    9649641991"}}.
    965965
     966Otherwise returns the time as a string formatted per the {{FORMAT}} string.
     967
     968See the {{strftime}} C procedure for a specification of the {{FORMAT}} string.
     969
     970==== string->time
     971
     972 [procedure] (string->time STRING [FORMAT])
     973
     974Returns the time string parsed per the {{FORMAT}} string as a broken out time
     97510 element vector.
     976
     977The default {{FORMAT}} string is {{"%a %b %e %H:%M:%S %Z %Y"}}. (The default
     978{{date}} command format.)
     979
     980See the {{strptime}} C procedure for a specification of the {{FORMAT}} string.
    966981
    967982=== Raw exit
     
    12911306 set-root-directory!
    12921307 utc-time->seconds
     1308 string->time
    12931309
    12941310==== Additional Definitions
Note: See TracChangeset for help on using the changeset viewer.