From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: not an org time string? Date: Tue, 3 Mar 2020 16:42:33 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:59380) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9HBN-0004Cl-Gy for emacs-orgmode@gnu.org; Tue, 03 Mar 2020 18:42:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j9HBM-00074q-Db for emacs-orgmode@gnu.org; Tue, 03 Mar 2020 18:42:37 -0500 Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]:33143) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j9HBM-00073V-67 for emacs-orgmode@gnu.org; Tue, 03 Mar 2020 18:42:36 -0500 Received: by mail-lj1-x235.google.com with SMTP id f13so5563671ljp.0 for ; Tue, 03 Mar 2020 15:42:36 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org never mind. (time-to-days (float-time)) is sufficient. On 3/3/20, Samuel Wales 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 "") > (time-to-days (org-time-string-to-time ts))) > (defun alpha-org-daynum-from-now () > (alpha-org-daynum-from-ts "")) > > > -- > 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