
On Tue, 20 Apr 2004 10:54:35 +0200, Daniel Frey wrote
Janusz Piwowarski wrote:
We already have a plausible way to represent a particular month, e.g. Feb/2003. I'd like to be able to write:
30/(Feb/2003 + 3*month)
To get 30/May/2003.
Slash isn't normal date separator in all countries. Anyhow, i like it.
Once again, I suggest to use a syntax closer to ISO 8601:
2003-MAY-30
Which, of course, isn't iso 8601 either because months in 8601 are never character strings. But I do happen to like your format better as I believe it is clearer then the 8601 standard :-) No confusion about which part is the month.
Should IMHO be the most international representation we can find.
I believe what they are talking about is an expression template representation which is limited by c++ operators. My problem with this (as I said in the other thread) is that expressions with fixed dates in code is a minor case in my experience. Most of these expressions in real apps would use dates serialized from files and databases -- not embedded in c++ code. In files and databases we want something that is more standard, which the library already supports. Jeff