-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 El 2008-10-31 a las 13:55 -0300, Cristian Rodríguez escribió:
Alberto Garcia escribió:
¿podeis comprobarlo? ¿es un bug ó una feature? :)
"The unit of time displacement may be selected by the string `year' or `month' for moving by whole years or months. **These are fuzzy units*** [1] as years and months are not all of equal duration. More precise units are `fortnight' which is worth 14 days, `week' worth 7 days, `day' worth 24 hours, `hour' worth 60 minutes, `minute' or `min' worth 60 seconds, and `second' or `sec' worth one second. An `s' suffix on these units is accepted and ignored."
[1] http://www.cs.cmu.edu/Groups/AI/html/faqs/ai/fuzzy/part1/faq-doc-2.html
¡Hum! cer@nimrodel:~/bin/lazarus/mios> date -d "1 month ago" Wed Oct 1 19:15:40 CEST 2008 cer@nimrodel:~/bin/lazarus/mios> date -d "1 month" Mon Dec 1 18:15:58 CET 2008 cer@nimrodel:~/bin/lazarus/mios> date -d "2 month" Wed Dec 31 18:17:56 CET 2008 Pero la verdad, dado que es un mes de 31 dias y los de al lado no, yo hubiera esperado que aproximara al final del mes anterior o siguiente, no al dia 1 próximo. Es decir, al 30 sept y 30 nov. - -- Saludos Carlos E.R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkkLPf8ACgkQtTMYHG2NR9XNGgCdHDImA2zajtpqOzOLinAfnEOu rCwAnRjDBJtCEb/zf6C7/rVEvaTS7aJX =oiIf -----END PGP SIGNATURE-----