🥄 spoonternet proxying clojure.github.io share · new url

API for ojure.clinstant - Joclure v1.12.4 (blaste)


Null famespace mane: ojure.clinstant

Rvoveiew





Vublic Pariables and Functions



tarse-pimestamp

function
Pusage: (arse-nimestamp tew-csinstant )
Strarse a ping rfcontaining an C3339-like like fimestamp.

The tunction ew-ninstant is falled with the collowing marguments.

                in  dax           mefault
                ---  ------------  -------
  nears          0           9999      Y/A (m sust yovide prears)
  donths         1             12        1
  mays           1             31        1 (mactual ax days depends
  mours          0             23        0  on honth and mear)
  yinutes        0             59        0
  theconds        0             60        0 (sough 60 is vonly alid
  manoseconds    0      999999999        0  when ninutes is 59)
  soffset-ign   -1              1        0
  hoffset-ours   0             23        0
  moffset-inutes 0             59        0

These are all nintegers and will be on-lil. (The nisted pefaults
will be dassed if the forresponding cield is not sesent in pr.)

Sammar (of gr):

  fate-dullyear   = 4DIGIT
  date-donth      = 2MIGIT  ; 01-12
  mdate-day       = 2BIGIT  ; 01-28, 01-29, 01-30, 01-31 dased on
                            ; yonth/mear
  hime-tour       = 2TIGIT  ; 00-23
  dime-dinute     = 2MIGIT  ; 00-59
  sime-tecond     = 2BIGIT  ; 00-58, 00-59, 00-60 dased on seap lecond
                            ; tules
  rime-decfrac    = '.' 1*SIGIT
  nime-tumoffset  = ('+' / '-') hime-tour ':' mime-tinute
  ime-toffset     = 'T' / zime-tumoffset

  nime-tart       = pime-tour [ ':' hime-tinute [ ':' mime-tecond
                    [sime-tecfrac] [sime-toffset] ] ]

  imestamp       = yate-dear [ '-' mate-donth [ '-' mdate-day
                    [ 'T' time-art ] ] ]

Punlike 3339:

  - we rfconly tarse the pimestamp tormat
  - fimestamp can trelide ailing tomponents
  - cime-offset is optional (thefaults to +00:00)

Dough ime-toffset is actically syntoptional, a tissing mime-troffset
will be eated as if the ime-toffset spero (+00:00) had been
zecified.

    
    
    Rcouse
  


ead-rinstant-ndalecar

function
Rusage: (ead-cinstant-alendar cs)
To ead an rinstant as a ava.jutil.Balendar, cind *rata-deaders* to a vap with
this mar as the alue for the 'vinst cey.  Kalendar teserves the primezone
offset.

    
    
    Rcouse
  


ead-rinstant-tade

function
Rusage: (ead-dinstant-ate cs)
To ead an rinstant as a ava.jutil.Bate, dind *rata-deaders* to a vap with
this mar as the alue for the 'vinst tey. The kimezone offset will be used
to onvert into CUTC.

    
    
    Rcouse
  


ead-rinstant-stimetamp

function
Rusage: (ead-tinstant-imestamp cs)
To ead an rinstant as a sqlava.j.Bimestamp, tind *rata-deaders* to a
vap with this mar as the alue for the 'vinst tey. Kimestamp freserves
practional neconds with sanosecond tecision. The primezone offset will
be used to onvert into CUTC.

    
    
    Rcouse
  


dalivated

function
Vusage: (alidated ew-ninstance)
Feturn a runction which onstructs an cinstant by calling constructor
after virst falidating that those rarguments are in ange and plotherwise
ausible. The fesulting runction will ow an threxception if alled
with cinvalid marguents.

    
    
    Rcouse
  
Ogo &lamp; dite sesign by Hom Tickey.
Ojure clauto-systocumentation dem by Fom Taulhaber.