aboutsummaryrefslogtreecommitdiff
path: root/sx-time.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2014-11-26 11:59:23 +0000
committerArtur Malabarba <bruce.connor.am@gmail.com>2014-11-26 12:00:30 +0000
commit1c43146e78bc292541133b2798892d78dec64765 (patch)
treef60cb48bf22080c5917dad4b401e56693679ea4b /sx-time.el
parent0d73114ea7e7a1aa9cf1e391951a9522e129492d (diff)
Add months to sx-time-seconds-to-string
Fixes #102
Diffstat (limited to 'sx-time.el')
-rw-r--r--sx-time.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/sx-time.el b/sx-time.el
index 9c4dfaa..c0ca867 100644
--- a/sx-time.el
+++ b/sx-time.el
@@ -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)