]> git.eshelyaron.com Git - emacs.git/commit
Port timestamp tests to odd timezones, (TICKS . HZ)
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 28 Feb 2020 07:16:44 +0000 (23:16 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 28 Feb 2020 07:39:29 +0000 (23:39 -0800)
commit8ab0e7316ab7e3465904b21ad168e5a9190a6a68
tree7f289e35d143c5ccc3e54103020f33e80e8949dd
parentef4440a9c80b284d46ecce47f4d387f132bbf374
Port timestamp tests to odd timezones, (TICKS . HZ)

* test/src/timefns-tests.el:
(format-time-string-padding-minimal-deletes-unneeded-zeros)
(format-time-string-padding-minimal-retains-needed-zeros)
(format-time-string-padding-spaces)
(format-time-string-padding-zeros-adds-on-insignificant-side):
Don't assume local time can represent 2000-02-15 00:00:00,
as there might be a DST jump over midnight.
Work even when timestamps are of (TICKS . HZ) form.
Simplify by avoiding need to call time-add.
test/src/timefns-tests.el