diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-11-26 11:59:23 +0000 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-11-26 12:00:30 +0000 |
commit | 1c43146e78bc292541133b2798892d78dec64765 (patch) | |
tree | f60cb48bf22080c5917dad4b401e56693679ea4b | |
parent | 0d73114ea7e7a1aa9cf1e391951a9522e129492d (diff) |
Add months to sx-time-seconds-to-string
Fixes #102
-rw-r--r-- | sx-time.el | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -29,11 +29,15 @@ ;; (LIMIT NAME VALUE) ;; We use an entry if the number of seconds in question is less than ;; LIMIT, but more than the previous entry's LIMIT. + ;; For instance, if time is less than 100 sec, we write it in seconds; + ;; if it is between 100 and 6000 sec, we use minutes. + ;; VALUE is the actual number of seconds which NAME represents. '((100 "s" 1) (6000 "m" 60.0) (108000 "h" 3600.0) - (34560000 "d" 86400.0) - (nil "y" 31557600.0)) + (3456000 "d" 86400.0) + (31622400 "M" 2628000.0) + (nil "Y" 31557600.0)) "Auxiliary variable used by `sx-time-since'.") (defun sx-time-since (time) |