Skip to content

emacs-php/emacs-datetime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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