help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question about parse-time-string and date-to-time


From: Eric Abrahamsen
Subject: Question about parse-time-string and date-to-time
Date: Wed, 29 Mar 2017 14:01:02 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

A conundrum:

parse-time-string accepts a string representing a date, and parses it
into a list of time elements, with nil for the unknowns.

date-to-time calls parse-time-string and passes the result straight to
encode-time, to produce a time value.

encode-time accepts series of time elements, and raises an error if any
of them are nil.

I might be missing something, but I don't see how date-to-time could
ever work. Wouldn't it always have to replace the nils with zeros before
passing the result to encode time?

Eric




reply via email to

[Prev in Thread] Current Thread [Next in Thread]