aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2014-11-26 08:17:45 -0500
committerSean Allred <code@seanallred.com>2014-11-26 08:17:45 -0500
commit5df6ffd2874dca9c5e0bdbe55ac112e1d4612da5 (patch)
tree0473cc5b6482a137d846a09aab5288647f04c4a0
parente9f03bfb583d514ff9c930c551f8e0760f29a598 (diff)
parent7471aa7c0775a633c9a4c1504cb5edb8eec3e16e (diff)
Merge pull request #103 from vermiculus/add-month-time
Add months to sx-time-seconds-to-string
-rw-r--r--sx-time.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/sx-time.el b/sx-time.el
index 9c4dfaa..057a397 100644
--- a/sx-time.el
+++ b/sx-time.el
@@ -29,10 +29,14 @@
;; (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)
+ (3456000 "d" 86400.0)
+ (31622400 "mo" 2628000.0)
(nil "y" 31557600.0))
"Auxiliary variable used by `sx-time-since'.")