Definitions of date arithmetic

D. J. Bernstein djb at cr.yp.to
Fri Oct 9 23:17:26 UTC 1998


Ken Pizzini writes:
> This, to compute the date six months and three days before date X:

Could you explain exactly what you mean by that?

What is 1 month before 31 March? What is 1 month before 16 March? What
is 1 month before 1 March?

What is 1 month after 1 February? What is 1 month after 16 February?
What is 1 month after 28 February?

> Now the API itself needs a fair bit more thought than I've given it;

Semantics first, please.

---Dan
1000 recipients, 28.8 modem, 10 seconds. http://pobox.com/~djb/qmail/mini.html



More information about the tz mailing list