I propose we just make infinity to be an empty string, or even better - NULL value - logically it means there is no expiry value - i.e. Infinite. We still have to handle the special case in the UI and in API (show specialized value), but at least we don't have to deal with a magic value... Unless there will be more magic values... eeick.
Of course we could make infinity into 9999-12-31 - but i really don't like it :)
On 6/18/07, Brion Vibber brion@wikimedia.org wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Rob Church wrote:
On 18/06/07, Yuri Astrakhan yuriastrakhan@gmail.com wrote:
I needed that so that API users, who should not be using internal wiki timestamps but instead use ISO ones. The alternative was for me to decode expiry field value myself (the IF statement). Obviously I could go that route, but there goes the code/concepts reuse :)
You could just pass the result through wfTimestamp() and get it converted to the desired format...
The difficulty is that it's _sometimes_ a timestamp and _sometimes_ the special value 'infinity', so you have to special case crap everywhere. Personally I think it's rather icky to begin with. :P :)
- -- brion vibber (brion @ wikimedia.org)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGdvWxwRnhpk1wk44RAtMFAJ9jsqfpyxNIvmoyjGClsj2Nt8QtkwCfdKiY AmwLrjVRppNnPI0ti6Lyez4= =p76/ -----END PGP SIGNATURE-----
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitech-l