Skip to content

Instantly share code, notes, and snippets.

😴
I'm probably napping

Matt Moriarity mjm

😴
I'm probably napping
Block or report user

Report or block mjm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View date.clj
;;; A date library that follows principle of least surprise
(ns clojure.contrib.date)
(import 'java.util.Calendar)
(import 'java.util.TimeZone)
(def #^{:doc "Conversion of Calendar weekdays to keywords"}
weekday-map
{Calendar/SUNDAY :sunday
Calendar/MONDAY :monday
View date.clj
;;; A date library that follows principle of least surprise
;;;
;;; A few usage examples:
;;;
;;; user> (now)
;;; {:second 24, :minute 10, :hour 0, :type
;;; :clojure.contrib.date/DateTime, :year 2009, :month 1, :day 23
;;; :zone "America/New_York"}
;;;
;;; user> (today)
You can’t perform that action at this time.