Liking cljdoc? Tell your friends :D

tupelo.java-time.convert


Date->Instantclj

(Date->Instant date)

Inputs: [date :- Date] Returns: Instant

Convert a java.util.Date to an Instant

Inputs: [date :- Date]
Returns: Instant

Convert a java.util.Date to an Instant
sourceraw docstring

Date->strclj

(Date->str date)

Inputs: [date :- Date] Returns: s/Str

Convert a java.util.Date to a string like '1999-12-31T01:02:03.456Z'

Inputs: [date :- Date]
Returns: s/Str

Convert a java.util.Date to a string like '1999-12-31T01:02:03.456Z'
sourceraw docstring

Instant->Dateclj

(Instant->Date inst)

Inputs: [inst :- Instant] Returns: Date

Convert an Instant to a java.util.Date

Inputs: [inst :- Instant]
Returns: Date

Convert an Instant to a java.util.Date
sourceraw docstring

Instant->jodaclj

(Instant->joda inst)

Inputs: [inst :- Instant] Returns: org.joda.time.ReadableInstant

Converts a java.time.Instant to a joda DateTime

Inputs: [inst :- Instant]
Returns: org.joda.time.ReadableInstant

Converts a java.time.Instant to a joda DateTime
sourceraw docstring

Instant->LocalDateclj

(Instant->LocalDate inst)

Inputs: [inst :- Instant] Returns: LocalDate

Converts an Instant to a LocalDate using the UTC timezone.

Inputs: [inst :- Instant]
Returns: LocalDate

Converts an Instant to a LocalDate using the UTC timezone.
sourceraw docstring

Instant->LocalDateTimeclj

(Instant->LocalDateTime inst)

Inputs: [inst :- Instant] Returns: LocalDateTime

Converts an Instant to a LocalDateTime in the UTC timezone.

Inputs: [inst :- Instant]
Returns: LocalDateTime

Converts an Instant to a LocalDateTime in the UTC timezone.
sourceraw docstring

Instant->sql-Timestampclj

(Instant->sql-Timestamp inst)

Inputs: [inst :- Instant] Returns: java.sql.Timestamp

Converts a java.time.Instant to a java.sql.Timestamp

Inputs: [inst :- Instant]
Returns: java.sql.Timestamp

Converts a java.time.Instant to a java.sql.Timestamp
sourceraw docstring

Instant->Yearclj

(Instant->Year inst)

Inputs: [inst :- Instant] Returns: Year

Convert an Instant to a Year object in the UTC timezone

Inputs: [inst :- Instant]
Returns: Year

Convert an Instant to a Year object in the UTC timezone
sourceraw docstring

Instant->YearMonthclj

(Instant->YearMonth inst)

Inputs: [inst :- Instant] Returns: YearMonth

Convert an Instant to a YearMonth in the UTC timezone

Inputs: [inst :- Instant]
Returns: YearMonth

Convert an Instant to a YearMonth in the UTC timezone
sourceraw docstring

Instant->ZonedDateTimeclj

(Instant->ZonedDateTime inst)

Inputs: [inst :- Instant] Returns: ZonedDateTime

Converts an Instant into a ZonedDateTime in the UTC timezone

Inputs: [inst :- Instant]
Returns: ZonedDateTime

Converts an Instant into a ZonedDateTime in the UTC timezone
sourceraw docstring

joda->Instantclj

(joda->Instant joda-inst)

Inputs: [joda-inst :- org.joda.time.ReadableInstant] Returns: Instant

Converts a joda DateTime or similar to a java.time.Instant

Inputs: [joda-inst :- org.joda.time.ReadableInstant]
Returns: Instant

Converts a joda DateTime or similar to a java.time.Instant
sourceraw docstring

LocalDate->Dateclj

(LocalDate->Date ld)

Inputs: [ld :- LocalDate] Returns: Date

Converts a LocalDate to a java.util.Date at start-of-day in the UTC timezone.

Inputs: [ld :- LocalDate]
Returns: Date

Converts a LocalDate to a java.util.Date at start-of-day in the UTC timezone.
sourceraw docstring

LocalDate->Instantclj

(LocalDate->Instant ld)

Inputs: [ld :- LocalDate] Returns: Instant

Converts a LocalDate to an Instant at start-of-day in the UTC timezone.

Inputs: [ld :- LocalDate]
Returns: Instant

Converts a LocalDate to an Instant at start-of-day in the UTC timezone.
sourceraw docstring

LocalDate->LocalDateTimeclj

(LocalDate->LocalDateTime ld)

Inputs: [ld :- LocalDate] Returns: LocalDateTime

Converts LocalDate -> LocalDateTime at start-of-day

Inputs: [ld :- LocalDate]
Returns: LocalDateTime

Converts LocalDate -> LocalDateTime at start-of-day 
sourceraw docstring

LocalDateTime->Instantclj

(LocalDateTime->Instant ldt)

Inputs: [ldt :- LocalDateTime] Returns: Instant

Converts a LocalDateTime to an Instant in the UTC timezone.

Inputs: [ldt :- LocalDateTime]
Returns: Instant

Converts a LocalDateTime to an Instant in the UTC timezone.
sourceraw docstring

LocalDateTime->ZonedDateTimeclj

(LocalDateTime->ZonedDateTime ldt)

Inputs: [ldt :- LocalDateTime] Returns: ZonedDateTime

Converts LocalDateTime -> ZonedDateTime in UTC time zone

Inputs: [ldt :- LocalDateTime]
Returns: ZonedDateTime

Converts LocalDateTime -> ZonedDateTime in UTC time zone
sourceraw docstring

sql-Date->strclj

(sql-Date->str date)

Inputs: [date :- java.sql.Date] Returns: s/Str

Converts a java.sql.Date into a String like '1999-12-30'

Inputs: [date :- java.sql.Date]
Returns: s/Str

Converts a java.sql.Date into a String like '1999-12-30' 
sourceraw docstring

sql-Timestamp->Instantclj

(sql-Timestamp->Instant sql-Timestamp)

Inputs: [sql-Timestamp :- java.sql.Timestamp] Returns: Instant

Converts a java.sql.Timestamp to a java.time.Instant

Inputs: [sql-Timestamp :- java.sql.Timestamp]
Returns: Instant

Converts a java.sql.Timestamp to a java.time.Instant
sourceraw docstring

sql-Timestamp->strclj

(sql-Timestamp->str ts)

Inputs: [ts :- Timestamp] Returns: s/Str

Converts a java.sql.Timestamp into a string like '1999-12-30 17:02:03.456'

Inputs: [ts :- Timestamp]
Returns: s/Str

Converts a java.sql.Timestamp into a string like '1999-12-30 17:02:03.456'
sourceraw docstring

str->Dateclj

(str->Date s)

Inputs: [s :- s/Str] Returns: Date

Parses a string like '1999-12-31T01:02:03.456Z' a Date

Inputs: [s :- s/Str]
Returns: Date

Parses a string like '1999-12-31T01:02:03.456Z' a Date
sourceraw docstring

str->sql-Dateclj

(str->sql-Date s)

Inputs: [s :- s/Str] Returns: Date

Parses a String like '1999-12-30' into a java.sql.Date

Inputs: [s :- s/Str]
Returns: Date

Parses a String like '1999-12-30' into a java.sql.Date
sourceraw docstring

str->sql-Timestampclj

(str->sql-Timestamp s)

Inputs: [s :- s/Str] Returns: Timestamp

Parses a string like '1999-12-30 17:02:03.456' into a java.sql.Timestamp

Inputs: [s :- s/Str]
Returns: Timestamp

Parses a string like '1999-12-30 17:02:03.456' into a java.sql.Timestamp
sourceraw docstring

Year->Instantclj

(Year->Instant year)

Inputs: [year :- Year] Returns: Instant

Given a Year object, returns the first Instant using the UTC timezone

Inputs: [year :- Year]
Returns: Instant

Given a Year object, returns the first Instant using the UTC timezone
sourceraw docstring

YearMonth->Instantclj

(YearMonth->Instant ym)

Inputs: [ym :- YearMonth] Returns: Instant

Given a YearMonth, returns the first Instant in the UTC timezone

Inputs: [ym :- YearMonth]
Returns: Instant

Given a YearMonth, returns the first Instant in the UTC timezone
sourceraw docstring

ZonedDateTime->Instantclj

(ZonedDateTime->Instant zdt)

Inputs: [zdt :- ZonedDateTime] Returns: Instant

Converts a ZonedDateTime to an Instant

Inputs: [zdt :- ZonedDateTime]
Returns: Instant

Converts a ZonedDateTime to an Instant
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close