tech.v3.dataset.io.datetime

Helpful and well tested string->datetime pathways.

datatype->general-parse-fn-map

Map of datetime datatype to generalized parse fn.

datetime-formatter-or-str->parser-fn

(datetime-formatter-or-str->parser-fn datatype format-string-or-formatter)

Given a datatype and one of fn? string? DateTimeFormatter, return a function that takes strings and returns datetime objects of type datatype.

datetime-formatter-parse-str-fn

(datetime-formatter-parse-str-fn datatype formatter)

Given a datatype and a formatter return a function that attempts to parse that specific datatype.

local-date-formatter

DateTimeFormatter that runs through a set of options in order to parse a wide variety of local date formats.

local-date-parser-patterns

Local date parser patterns used to generate the local date formatter.

local-time-formatter

DateTimeFormatter built to help parse a wide variety of time strings

parse-duration

(parse-duration str-data)

Attempt a few ways to parse a duration.

parse-local-date

(parse-local-date str-data)

Convert a string into a local date attempting a wide variety of format types.

parse-local-date-time

(parse-local-date-time str-data)

Parse a local-date-time by first splitting the string and then separately parsing the local-date portion and the local-time portions.

parse-local-time

(parse-local-time str-data)

Convert a string into a local time attempting a wide variety of possible parser patterns.

time-parser-patterns

Parser patterns to parse a wide variety of time strings