From: Samuel Wales <samologist@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: <now> not an org time string?
Date: Tue, 3 Mar 2020 16:42:33 -0700 [thread overview]
Message-ID: <CAJcAo8vd+FfMYukh+ExsxgDFKHy-JF8FhLjmd4HnJ=tgz-qQDw@mail.gmail.com> (raw)
In-Reply-To: <CAJcAo8sqN3-e+1Z9-qxfayFuQ2ZdcmpgEH0qWAuhsPHZD_k74w@mail.gmail.com>
never mind. (time-to-days (float-time)) is sufficient.
On 3/3/20, Samuel Wales <samologist@gmail.com> 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
prev parent reply other threads:[~2020-03-03 23:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-03 23:08 <now> not an org time string? Samuel Wales
2020-03-03 23:42 ` Samuel Wales [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJcAo8vd+FfMYukh+ExsxgDFKHy-JF8FhLjmd4HnJ=tgz-qQDw@mail.gmail.com' \
--to=samologist@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).