Emacs Lisp
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Cask
README.org
datetime-format.el
test-datetime-format.el
timecop.el

README.org

Emacs datetime

Inspired by PHP’s Datetime class.

No test yet.

API

(datetime-format SYM-OR-FMT &optional TIME &rest OPTION)

(datetime-format "%Y-%m-%d")
(datetime-format 'atom)
(datetime-format 'atom "2112-09-03 00:00:00" :timezone "UTC")

Format symbols

SymbolExample
atom2008-04-01T00:00:00+09:00
atom-utc2008-03-31T15:00:00Z
cookieTuesday, 01-Apr-2008 00:00:00 JST
rfc-822Tue, 01 Apr 08 00:00:00 +0900
rfc-850Tuesday, 01-Apr-08 00:00:00 JST
rfc-1036Tue, 01 Apr 08 00:00:00 +0900
rfc-1123Tue, 01 Apr 2008 00:00:00 +0900
rfc-2822Tue, 01 Apr 2008 00:00:00 +0900
rfc-33392008-04-01T00:00:00+09:00
rssTue, 01 Apr 2008 00:00:00 +0900
w3c2008-04-01T15:52:01+00:00