(Date-encode date)
Inputs: [date :- java.util.Date] Returns: s/Str
Encodes a java.util.Date object into a tagstr like <#java.util.Date 1999-12-31T01:02:03.456Z>
Inputs: [date :- java.util.Date] Returns: s/Str Encodes a java.util.Date object into a tagstr like `<#java.util.Date 1999-12-31T01:02:03.456Z>`
(Date-parse s)
Inputs: [s :- s/Str] Returns: java.util.Date
Decodes a tagstr like <#java.util.Date 1999-12-31T01:02:03.456Z>
into a java.util.Date object
Inputs: [s :- s/Str] Returns: java.util.Date Decodes a tagstr like `<#java.util.Date 1999-12-31T01:02:03.456Z>` into a java.util.Date object
(extract-data-str s)
Inputs: [s :- s/Str] Returns: s/Str
Given a tagstr like <#java.util.Date 1999-12-31T01:02:03.456Z>
,
returns the data str 1999-12-31T01:02:03.456Z
Inputs: [s :- s/Str] Returns: s/Str Given a tagstr like `<#java.util.Date 1999-12-31T01:02:03.456Z>`, returns the data str `1999-12-31T01:02:03.456Z`
(extract-tag-str s)
Inputs: [s :- s/Str] Returns: s/Str
Given a tagstr like <#java.util.Date 1999-12-31T01:02:03.456Z>
,
returns the tag str #java.util.Date>
Inputs: [s :- s/Str] Returns: s/Str Given a tagstr like `<#java.util.Date 1999-12-31T01:02:03.456Z>`, returns the tag str `#java.util.Date>`
(Instant-encode inst)
Inputs: [inst :- Instant] Returns: s/Str
Encodes an Instant object into a tagstr like <#inst 1999-12-31T01:02:03.456Z>
Inputs: [inst :- Instant] Returns: s/Str Encodes an Instant object into a tagstr like `<#inst 1999-12-31T01:02:03.456Z>`
(Instant-parse s)
Inputs: [s :- s/Str] Returns: Instant
Decodes a tagstr like <#inst 1999-12-31T01:02:03.456Z>
into an Instant object
Inputs: [s :- s/Str] Returns: Instant Decodes a tagstr like `<#inst 1999-12-31T01:02:03.456Z>` into an Instant object
(sql-Date-encode date)
Inputs: [date :- java.sql.Date] Returns: s/Str
Encodes a java.sql.Date object into a tagstr like <#java.sql.Date 1999-11-22>
Inputs: [date :- java.sql.Date] Returns: s/Str Encodes a java.sql.Date object into a tagstr like `<#java.sql.Date 1999-11-22>`
(sql-Date-parse s)
Inputs: [s :- s/Str] Returns: java.sql.Date
Decodes a tagstr like <#java.sql.Date 1999-11-22>
into a java.sql.Date object
Inputs: [s :- s/Str] Returns: java.sql.Date Decodes a tagstr like `<#java.sql.Date 1999-11-22>` into a java.sql.Date object
(sql-Timestamp-encode ts)
Inputs: [ts :- Timestamp] Returns: s/Str
Encodes a java.sql.Timestamp object into a tagstr like <#java.sql.Timestamp 1999-12-31 01:02:03.456>
Inputs: [ts :- Timestamp] Returns: s/Str Encodes a java.sql.Timestamp object into a tagstr like `<#java.sql.Timestamp 1999-12-31 01:02:03.456>`
(sql-Timestamp-parse s)
Inputs: [s :- s/Str] Returns: Timestamp
Decodes a tagstr like <#java.sql.Timestamp 1999-12-31 01:02:03.456>
into a java.sql.Timestamp object
Inputs: [s :- s/Str] Returns: Timestamp Decodes a tagstr like `<#java.sql.Timestamp 1999-12-31 01:02:03.456>` into a java.sql.Timestamp object
A map from tag to object parse fn
A map from tag to object parse fn
(tagstr? item)
Inputs: [item :- s/Any] Returns: s/Bool
Returns true iff arg is a Tagged String
Inputs: [item :- s/Any] Returns: s/Bool Returns true iff arg is a Tagged String
A map from object type to tagstr encode fn
A map from object type to tagstr encode fn
(UUID-encode uuid)
Inputs: [uuid :- UUID] Returns: s/Str
Encodes a UUID object into a tagstr like <#uuid 605ca9b3-219b-44b3-9c91-238dba64a3f8>
Inputs: [uuid :- UUID] Returns: s/Str Encodes a UUID object into a tagstr like `<#uuid 605ca9b3-219b-44b3-9c91-238dba64a3f8>`
(UUID-parse s)
Inputs: [s :- s/Str] Returns: UUID
Decodes a tagstr like <#uuid 605ca9b3-219b-44b3-9c91-238dba64a3f8>
into a UUID object
Inputs: [s :- s/Str] Returns: UUID Decodes a tagstr like `<#uuid 605ca9b3-219b-44b3-9c91-238dba64a3f8>` into a UUID object
(walk-encode data)
(walk-encode encode-map data)
Inputs: ([data :- s/Any] [encode-map :- tsk/Map data :- s/Any]) Returns: s/Any
Walk a data structure and convert objects to tagged strings like:
{:date "<#java.util.Date 1999-12-31T01:02:03.456Z>"
:five 5
:hello "Hello!"
:instant "<#inst 1999-12-31T01:02:03.456Z>"
:millis 946602123456
:nil nil
:sql-date "<#java.sql.Date 1999-11-22>"
:sql-timestamp "<#java.sql.Timestamp 1999-12-31 01:02:03.456>"
:uuid "<#uuid 605ca9b3-219b-44b3-9c91-238dba64a3f8>"
:zdt "<#ZonedDateTime 1999-11-22T11:33:44.555-08:00>"}
Inputs: ([data :- s/Any] [encode-map :- tsk/Map data :- s/Any]) Returns: s/Any Walk a data structure and convert objects to tagged strings like: {:date "<#java.util.Date 1999-12-31T01:02:03.456Z>" :five 5 :hello "Hello!" :instant "<#inst 1999-12-31T01:02:03.456Z>" :millis 946602123456 :nil nil :sql-date "<#java.sql.Date 1999-11-22>" :sql-timestamp "<#java.sql.Timestamp 1999-12-31 01:02:03.456>" :uuid "<#uuid 605ca9b3-219b-44b3-9c91-238dba64a3f8>" :zdt "<#ZonedDateTime 1999-11-22T11:33:44.555-08:00>"}
(walk-parse data)
(walk-parse parse-map data)
Inputs: ([data :- s/Any] [parse-map :- tsk/Map data :- s/Any]) Returns: s/Any
Walk a data structure like the following and parse tagged strings into objects:
{:date "<#java.util.Date 1999-12-31T01:02:03.456Z>"
:five 5
:hello "Hello!"
:instant "<#inst 1999-12-31T01:02:03.456Z>"
:millis 946602123456
:nil nil
:sql-date "<#java.sql.Date 1999-11-22>"
:sql-timestamp "<#java.sql.Timestamp 1999-12-31 01:02:03.456>"
:uuid "<#uuid 605ca9b3-219b-44b3-9c91-238dba64a3f8>"
:zdt "<#ZonedDateTime 1999-11-22T11:33:44.555-08:00>"}
Inputs: ([data :- s/Any] [parse-map :- tsk/Map data :- s/Any]) Returns: s/Any Walk a data structure like the following and parse tagged strings into objects: {:date "<#java.util.Date 1999-12-31T01:02:03.456Z>" :five 5 :hello "Hello!" :instant "<#inst 1999-12-31T01:02:03.456Z>" :millis 946602123456 :nil nil :sql-date "<#java.sql.Date 1999-11-22>" :sql-timestamp "<#java.sql.Timestamp 1999-12-31 01:02:03.456>" :uuid "<#uuid 605ca9b3-219b-44b3-9c91-238dba64a3f8>" :zdt "<#ZonedDateTime 1999-11-22T11:33:44.555-08:00>"}
(ZonedDateTime-encode inst)
Inputs: [inst :- ZonedDateTime] Returns: s/Str
Encodes a ZonedDateTime object into a tagstr like <#ZonedDateTime 1999-11-22T11:33:44.555-08:00>
Inputs: [inst :- ZonedDateTime] Returns: s/Str Encodes a ZonedDateTime object into a tagstr like `<#ZonedDateTime 1999-11-22T11:33:44.555-08:00>`
(ZonedDateTime-parse s)
Inputs: [s :- s/Str] Returns: ZonedDateTime
Decodes a tagstr like <#ZonedDateTime 1999-11-22T11:33:44.555-08:00>
into a ZonedDateTime object
Inputs: [s :- s/Str] Returns: ZonedDateTime Decodes a tagstr like `<#ZonedDateTime 1999-11-22T11:33:44.555-08:00>` into a ZonedDateTime object
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close