[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Cannot schedule something for 2039?
From: |
Samuel Wales |
Subject: |
Re: Cannot schedule something for 2039? |
Date: |
Mon, 7 Jun 2021 13:42:56 -0700 |
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