Changeset 38288 in project


Ignore:
Timestamp:
03/17/20 00:00:06 (3 weeks ago)
Author:
Kon Lovett
Message:

rel 4.3.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/srfi-19

    r38285 r38288  
    500500
    501501<procedure>(format-date DESTINATION DATE-FORMAT-STRING DATE)</procedure>
     502<procedure>(format-date DATE-FORMAT-STRING DATE) -> {{string}}</procedure>
    502503
    503504Displays a text form of the {{DATE}} on the {{DESTINATION}} using the
    504505{{DATE-FORMAT-STRING}}.
    505506
    506 When the {{DESTINATION}} is {{#t}} the {{(current-output-port)}} is used, and the
    507 date object must be specified.
    508 
    509 When the {{DESTINATION}} is a port it must be an {{output-port}}, and the date
    510 object must be specified.
    511 
    512 When the {{DESTINATION}} is a number the {{(current-error-port)}} is the
    513 {{DESTINATION}}, and the {{DATE}} object must be specified.
    514 
    515 When the {{DESTINATION}} is {{#f}} the result is returned as a string, and the
    516 {{DATE}} object must be specified.
    517 
    518 <procedure>(format-date DATE-FORMAT-STRING DATE) -> {{string}}</procedure>
    519 
    520 Result is returned as a string.
     507; {{DESTINATION}} :                 ; the result is returned as a string.
     508; {{DESTINATION}} : {{#f}}          ; the result is returned as a string.
     509; {{DESTINATION}} : {{#t}}          ; the {{(current-output-port)}} is used.
     510; {{DESTINATION}} : {{output-port}} ; text output port.
     511; {{DESTINATION}} : {{number}}      ; the {{(current-error-port)}} is the {{DESTINATION}}.
    521512
    522513===== scan-date
     
    527518{{TEMPLATE-STRING}}, and returns a date object.
    528519
    529 When the {{SOURCE}} is {{#t}} the {{(current-input-port)}} is used.
    530 
    531 When the {{SOURCE}} is a port it must be an {{input-port}}.
    532 
    533 When the {{SOURCE}} is string it should be a date text form.
     520; {{SOURCE}} : {{#t}}         ; {{(current-input-port)}}.
     521; {{SOURCE}} : {{input-port}} ; text input port.
     522; {{SOURCE}} : {{string}}     ; a date text form.
     523
     524A ''partial'' date resulting from a time-only format, missing the
     525d-m-y, is completed with from the {{(current-date)}}, as is any
     526timezone information, and missing h:m:s:ns are {{0}}.
    534527
    535528=== Time Period
     
    829822== Version history
    830823
    831 ; 4.3.1 :
     824; 4.3.2 : Allow partial (time only) date ''read''.
     825; 4.3.1 : .
    832826; 4.3.0 : Deprecate {{'srfi-10}} record print form. Fix record printing.
    833827; 4.3.0 : {{nanoseconds->seconds}}, {{milliseconds->seconds}}, & {{date->seconds}} do not necessarily return an {{inexact}}.
Note: See TracChangeset for help on using the changeset viewer.