* <now> not an org time string?
@ 2020-03-03 23:08 Samuel Wales
2020-03-03 23:42 ` Samuel Wales
0 siblings, 1 reply; 2+ messages in thread
From: Samuel Wales @ 2020-03-03 23:08 UTC (permalink / raw)
To: emacs-orgmode
seems this used to work but does not now. what's a good replacement?
(defun alpha-org-daynum-from-ts (ts)
;; internal time
;; (org-time-string-to-time "[2000-01-01]")
;; (org-time-string-to-time "<2000-01-01>")
;; (org-time-string-to-time "<now>")
(time-to-days (org-time-string-to-time ts)))
(defun alpha-org-daynum-from-now ()
(alpha-org-daynum-from-ts "<now>"))
--
The Kafka Pandemic
What is misopathy?
https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-03-03 23:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-03 23:08 <now> not an org time string? Samuel Wales
2020-03-03 23:42 ` Samuel Wales
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.