Changeset 38293 in project


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

rel 4.4.0

File:
1 edited

Legend:

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

    r38288 r38293  
    3131(import srfi-19-timezone)
    3232</enscript>
    33 
    34 === I/O Procedures
    35 
    3633<enscript language=scheme>
    37 (import srfi-19-io)
     34(import srfi-19-support)
    3835</enscript>
    3936
     
    526523timezone information, and missing h:m:s:ns are {{0}}.
    527524
     525=== Date/Time Literals
     526
     527Literal Date/Time forms.
     528
     529==== Usage
     530
     531<enscript language=scheme>
     532(import srfi-19-literals)
     533</enscript>
     534
     535===== date-literal-form
     536
     537<parameter>(date-literal-form [FORM]) -> (or boolean symbol)</parameter>
     538
     539The {{date}} literal format.
     540
     541; {{#f}} :#<srfi-19#date ...>
     542; {{SRFI-10}} : #,(srfi-19-date ...)
     543; {{#t}} : #@...
     544; {{|#@|}} : #@...
     545
     546===== time-literal-form
     547
     548<parameter>(time-literal-form [FORM])-> (or boolean symbol)</parameter>
     549
     550The {{time}} literal format.
     551
     552; {{#f}} :#<srfi-19#time ...>
     553; {{SRFI-10}} : #,(srfi-19-time ...)
     554
     555===== read-date-literal
     556
     557<procedure>(read-date-literal [PORT]) -> list</procedure>
     558
     559Read a {{date}} from the {{PORT}} in one of the support ISO forms, and returns
     560the creation source form.
     561
     562; {{PORT}} : {{input-port}} ; default {{(current-input-port)}}
     563
     564; {{"~Y-~m-~dT~H:~M:~S~z"}} : date time timezone
     565; {{"~Y-~m-~dT~H:~M:~S"}} :  date time
     566; {{"~Y-~m-~d"}} :  date
     567; {{"~H:~M:~S~z"}} : time timezone; {{date}} components from {{(current-date)}}
     568; {{"~H:~M:~S"}} : time; {{date}} components from {{(current-date)}}
     569
     570===== write-date-literal
     571
     572<procedure>(write-date-literal DATE [PORT])</procedure>
     573
     574Write the {{DATE}} to the {{PORT}} using a string ISO form.
     575
     576; {{PORT}} : {{output-port}} ; default {{(current-output-port)}}
     577
    528578=== Time Period
    529579
     
    716766== Usage
    717767
    718 * This module exports the time, date, timezone, and io APIs.
     768* This module exports the time, date, timezone, literal, and io APIs.
    719769
    720770<enscript language=scheme>
     
    747797== Acknowledgments
    748798
    749 * For the German (de), Italian (it), Spanish (es), Dutch (nl), &
    750 Brazilian Portuguese (pt_br) SRFI 29 bundles.
     799* Special thanks for the German (de), Italian (it), Spanish (es), Dutch (nl),
     800and Brazilian Portuguese (pt_br) SRFI 29 bundles.
    751801
    752802
     
    755805* The {{string->date}} and {{scan-date}} procedures will not create an
    756806''incomplete'' date. At a minimum the input must include day, month and year
    757 components; the time and timezone components default to 0 and the locale,
     807or hour, minute, second; the time and timezone default to 0 and the locale,
    758808respectively.
    759809
     
    790840* Using {{date-adjust}} for the same {{date-key}} MomentJS says:
    791841
     842<blockquote>
    792843If you are adding hours, minutes, seconds, or milliseconds, the assumption is
    793844that you want precision to the hour, and will result in a different hour.
     845</blockquote>
    794846
    795847<enscript language=javascript>
     
    822874== Version history
    823875
     876; 4.4.0 : Add Date/Time source literals via the {{srfi-19-literals}} module.
    824877; 4.3.2 : Allow partial (time only) date ''read''.
    825878; 4.3.1 : .
Note: See TracChangeset for help on using the changeset viewer.