Skip to content

wdhowe/date-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

date-utils

Build Status Clojars Project Clojure version

A Clojure library for getting date based information.

Getting Started

Using the date-utils library.

Installation

See Clojars for adding this library to various project types (lein, boot, deps.edn, etc).

Include the Library

In the REPL

(require '[date-utils.core :as date])

In your application

(ns my-app.core
  (:require [date-utils.core :as date]))

Use the Library

A few usage examples.

;; Get the current date in a date object.
(date/now)

;; Convert a yyyy-MM-dd string to a date object.
(date/str->date "2020-01-03")

;; Days left until the end of the year.
(date/days-left)