CrossClj

0.4.1 docs

SourceDocs



RECENT
    VARS
    add
    after?
    before?
    closure-timezone
    date
    date->str
    date-fmt
    date-time
    date-time->str
    date-time-fmt
    date-time?
    date?
    DateTime
    days
    end-of-day
    end-of-month
    end-of-week
    end-of-year
    equal?
    format
    formatter
    formatter'
    hours
    initialize-timezone!
    LocalDate
    minus
    minutes
    months
    parser
    parser'
    plus
    read-date-time
    read-local-date
    seconds
    start-of-day
    start-of-month
    start-of-week
    start-of-year
    timezone
    timezone'
    to-string
    ToDate
    ToDateTime
    ToNative
    ToString
    weeks
    with-zone
    write-date-time
    write-local-date
    years

    « Index of all namespaces of this project

    Use this namespace to format dates and datetimes for user.
    
    Deprecated
    (add date x)
    DEPRECATED: Use plus instead.
    
    (after? a b)
    Defined only for Date objects. Does nil check.
    
    (before? a b)
    Defined only for Date objects. Does nil check.
    
    (closure-timezone timezone-id)
    Builds Closure timeZoneData map from JodaTime timezone.
    
    (date)(date x)(date s {:keys [pattern]})(date y m d)
    Deprecated
    (date->str d)
    DEPRECATED: Use format instead.
    
    (date-time)(date-time x)(date-time s {:keys [pattern]})(date-time y m d hh mm)(date-time y m d hh mm ss)(date-time y m d hh mm ss millis)
    Deprecated
    (date-time->str d)
    DEPRECATED: Use format instead.
    
    (date-time? x)
    Test if x is date-time as defined by this namespace.
    
    Platform dependent libraries might have other date-time objects, but only the
    exact classes used by this namespace are accepted.
    (date? x)
    Test if x is date or date-time (as they extend date) as defined by this namespace.
    
    Platform dependent libraries might have other date objects, but only the
    exact classes used by this namespace are accepted.
    (days)(days n)
    (end-of-day date-time)
    (end-of-month date)
    (end-of-week date)
    (end-of-year date)
    (equal? a b)
    Defined only for Date objects. Does nil check.
    
    (format x {:keys [pattern timezone]})
    Private
    (formatter' f)
    (hours)(hours n)
    macro
    (initialize-timezone! timezone-id)
    Initializes given timezone for ClojureScript use.
    
    (minus date x)
    (minutes)(minutes n)
    (months)(months n)
    Private
    (parser' f)
    (plus date x)
    Private
    (read-date-time s)
    Read RFC3339 string to DateTime.
    
    Private
    (read-local-date x)
    Read Date in YYYY-MM-DD format.
    
    (seconds)(seconds n)
    (start-of-day date-time)
    (start-of-month date)
    (start-of-week date)
    (start-of-year date)
    Private
    (timezone' timezone-id)
    (to-string x)
    Returns good (e.g. RFC3339 or YYYY-MM-DD) representation for given object.
    
    protocol
    (-to-date x)
    Convers DateTime or such to Date.
    
    protocol
    (-to-date-time x)
    Convers Date or such to DateTime.
    
    protocol
    (to-native x)
    Convers to native Date object (java.util.Date or js/Date).
    
    protocol
    (-to-string x)
    Converts object to good date string representation
    
    (weeks)(weeks n)
    (with-zone d timezone-id)
    Private
    (write-date-time d)
    Represent DateTime in RFC3339 format string.
    
    Private
    (write-local-date x)
    Represent Date in YYYY-MM-DD format.
    
    (years)(years n)