You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.org
+94Lines changed: 94 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -558,6 +558,100 @@ Streams could be created from any sequential input data:
558
558
559
559
*** Libraries :libraries:
560
560
561
+
**** [[https://github.com/alphapapa/ts.el][ts.el: Timestamp and date-time library]]
562
+
563
+
=ts= aids in parsing, formatting, and manipulating timestamps.
564
+
565
+
#+BEGIN_QUOTE
566
+
ts is a date and time library for Emacs. It aims to be more convenient than patterns like ~(string-to-number (format-time-string "%Y"))~ by providing easy accessors, like ~(ts-year (ts-now))~.
567
+
568
+
To improve performance (significantly), formatted date parts are computed lazily rather than when a timestamp object is instantiated, and the computed parts are then cached for later access without recomputing. Behind the scenes, this avoids unnecessary ~(string-to-number (format-time-string...~ calls, which are surprisingly expensive.
569
+
#+END_QUOTE
570
+
571
+
***** Examples
572
+
573
+
Get parts of the current date:
574
+
575
+
#+BEGIN_SRC elisp
576
+
;; When the current date is 2018-12-08 23:09:14 -0600:
0 commit comments