[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: <now> not an org time string?
From: |
Samuel Wales |
Subject: |
Re: <now> not an org time string? |
Date: |
Tue, 3 Mar 2020 16:42:33 -0700 |
never mind. (time-to-days (float-time)) is sufficient.
On 3/3/20, Samuel Wales <address@hidden> wrote:
> 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
>
--
The Kafka Pandemic
What is misopathy?
https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html