[Haifux] Warning: bug 2009

Dotan Cohen dotancohen at gmail.com
Wed Dec 31 13:29:59 MSK 2008


2008/12/31 ik <idokan at gmail.com>:
> Hi,
>
> I had a very small and bad bug that I discovered today.
>
> I use strftime to format a date, and I accidentally used the %g option
> rather then %y.
> The difference is that %g is returning the year of the week (2009 this
> week), while %y return the year of today (2008).
>
> So I wanted to warn everyone, so if you made the same mistake, you
> could find it easily enough.
>
> Ido
>

Feature, not a bug!

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه‍-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü


More information about the Haifux mailing list