unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Question about parse-time-string and date-to-time
@ 2017-03-29 21:01 Eric Abrahamsen
  2017-03-29 21:18 ` Eric Abrahamsen
  2017-03-29 22:14 ` John Mastro
  0 siblings, 2 replies; 4+ messages in thread
From: Eric Abrahamsen @ 2017-03-29 21:01 UTC (permalink / raw)
  To: help-gnu-emacs

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




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

end of thread, other threads:[~2017-03-29 23:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-29 21:01 Question about parse-time-string and date-to-time Eric Abrahamsen
2017-03-29 21:18 ` Eric Abrahamsen
2017-03-29 22:14 ` John Mastro
2017-03-29 23:12   ` Eric Abrahamsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).