From: Samuel Wales <samologist@gmail.com>
To: Alan Schmitt <alan.schmitt@polytechnique.org>
Cc: Richard Lawrence <richard.lawrence@uni-tuebingen.de>,
emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Cannot schedule something for 2039?
Date: Mon, 7 Jun 2021 13:42:56 -0700 [thread overview]
Message-ID: <CAJcAo8vB0HyRTjKc=8uA+w_BpVuRwkTnXH9+i9haTg3aNmKMcw@mail.gmail.com> (raw)
In-Reply-To: <87pmwyggjk.fsf@m4x.org>
fwiw i ran this once:
;;(/ (org-time-string-to-seconds "-9999-01-01 00:00") 60.0) 4222846500.0
;;(/ (org-time-string-to-seconds "-0001-12-31 00:00") 60.0) -1035068671.7
;; oops
;;(/ (org-time-string-to-seconds "0000-12-31 00:00") 60.0) -1035594271.7
;;(/ (org-time-string-to-seconds "0001-12-31 00:00") 60.0) -1035068671.7
;;(/ (org-time-string-to-seconds "1000-12-31 00:00") 60.0) -509645791.7
;;(/ (org-time-string-to-seconds "1776-12-31 00:00") 60.0) -101508031.7
;;(/ (org-time-string-to-seconds "1900-12-31 00:00") 60.0) -36291900.0
;; nan on non-64
;;(/ (org-time-string-to-seconds "1901-12-31 00:00") 60.0) -35766300.0
;;(/ (org-time-string-to-seconds "1934-12-31 00:00") 60.0) -18409980.0
;;(/ (org-time-string-to-seconds "1960-12-31 00:00") 60.0) -4734300.0
;;(/ (org-time-string-to-seconds "1969-12-31 00:00") 60.0) -1020.0
;;(/ (org-time-string-to-seconds "1970-01-01 00:00") 60.0) 420.0
;;(/ (org-time-string-to-seconds "1980-01-01 00:00") 60.0) 5259300.0
;;(/ (org-time-string-to-seconds "1990-01-01 00:00") 60.0) 10519620.0
;;(/ (org-time-string-to-seconds "2000-01-01 00:00") 60.0) 15778500.0
;;(/ (org-time-string-to-seconds "2010-01-01 00:00") 60.0) 21038820.0
;;(/ (org-time-string-to-seconds "2038-01-01 00:00") 60.0) 35765700.0
;;(/ (org-time-string-to-seconds "2138-01-01 00:00") 60.0) 88360260.0
;;(/ (org-time-string-to-seconds "9999-01-01 00:00") 60.0) 4222846500.0
;; nan on non-64
On 6/7/21, Alan Schmitt <alan.schmitt@polytechnique.org> wrote:
> Hello Richard,
>
> On 2021-06-07 11:17, Richard Lawrence <richard.lawrence@uni-tuebingen.de>
> writes:
>
>> whoa, that's a weird behavior, but it seems not to be a bug. I learned
>> something today!
>>
>> It looks like some Emacs implementations don't support dates after
>> 2038-1-1, so Org doesn't let you specify them by default. See the
>> variable `org-read-date-force-compatible-dates'. I think you want to set
>> this variable to nil.
>
> Thanks a lot for pointing to this variable, its docstring is quite
> interesting.
>
> I’m trying the workaround suggested (using a diary sexp, i.e.,
> "<%%(diary-date 2039 4 2)>" in my case), but I cannot test it (the
> agenda for that date won’t build, at the date is outside the range). I
> guess this will be fixed by then ;)
>
> Best,
>
> Alan
>
--
The Kafka Pandemic
Please learn what misopathy is.
https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html
next prev parent reply other threads:[~2021-06-07 20:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-07 8:12 Cannot schedule something for 2039? alan.schmitt
2021-06-07 9:17 ` Richard Lawrence
2021-06-07 9:39 ` Alan Schmitt
2021-06-07 20:42 ` Samuel Wales [this message]
2021-06-07 9:24 ` Samuel Loury
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJcAo8vB0HyRTjKc=8uA+w_BpVuRwkTnXH9+i9haTg3aNmKMcw@mail.gmail.com' \
--to=samologist@gmail.com \
--cc=alan.schmitt@polytechnique.org \
--cc=emacs-orgmode@gnu.org \
--cc=richard.lawrence@uni-tuebingen.de \
/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 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.