all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Questions about encode-time and decode-time
@ 2021-03-23 17:11 Pascal Quesseveur
  2021-03-23 18:27 ` Pascal Quesseveur
  0 siblings, 1 reply; 12+ messages in thread
From: Pascal Quesseveur @ 2021-03-23 17:11 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

Due to an error in decoding a date in a Vcalendar apointment, I tried
to understand the coding and decoding of time values. I ended up with
these tests:

(decode-time (encode-time
  (list 0 30 9 13 3 2021 nil -1 "STD-01:00DST-02:00,M3.5.0/02:00:00,M10.5.0/03:00:00")))
-> (0 30 9 13 3 2021 3 nil 3600)
(decode-time (encode-time
  (list 0 30 9 14 3 2021 nil -1 "STD-01:00DST-02:00,M3.5.0/02:00:00,M10.5.0/03:00:00")))
-> (0 30 8 14 3 2021 5 nil 3600)
(decode-time (encode-time
  (list 0 30 9 27 3 2021 nil -1 "STD-01:00DST-02:00,M3.5.0/02:00:00,M10.5.0/03:00:00")))
-> (0 30 8 27 3 2021 6 nil 3600)
(decode-time (encode-time
  (list 0 30 9 28 3 2021 nil -1 "STD-01:00DST-02:00,M3.5.0/02:00:00,M10.5.0/03:00:00")))
-> (0 30 9 28 3 2021 0 t 7200)

I don't understand why I get 8:30 from march 14 to 27.

My config is Emacs 27.1 (x86_64-w64-mingw32) on a french Windows 10
system. I checked with emacs -Q.

-- 
Pascal Quesseveur
pquessev@gmail.com




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-03-25 12:48 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-23 17:11 Questions about encode-time and decode-time Pascal Quesseveur
2021-03-23 18:27 ` Pascal Quesseveur
2021-03-23 19:21   ` Eli Zaretskii
2021-03-24  7:27     ` Pascal Quesseveur
2021-03-24 13:40       ` Eli Zaretskii
2021-03-24 14:36         ` Pascal Quesseveur
2021-03-24 17:29           ` Eli Zaretskii
2021-03-25  7:51             ` Pascal Quesseveur
2021-03-25  8:20               ` Eli Zaretskii
2021-03-25 11:26                 ` Pascal Quesseveur
2021-03-25 11:45                   ` Eli Zaretskii
2021-03-25 12:48                     ` Pascal Quesseveur

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.