On Wed, Apr 14, 2004 at 04:03:54PM +0400, Денис Якимов wrote: > В Срд, 14.04.2004, в 15:56, Dmitry V. Levin написал: > > On Wed, Apr 14, 2004 at 03:52:28PM +0400, Денис Якимов wrote: > > > Учимся считать: > > > > $ echo $((2004/100)) > > 20 > > > > P.S. А ведь опять offtopic. :( > > > про маны мне рассказывать не надо. Мне просто интересно, как полному > end-пользователю команды date, что когда эта самая команда будет > отрабатывать корректно в соответствии с реалиями? А не то, что там хочет > автор. Вы хотите, чтобы date(1) работала не так, как она должна работать согласно "Base Definitions volume of IEEE Std 1003.1-2001, Section 12.2, Utility Syntax Guidelines", а так, как вам за'end'ит в данный момент времени? Цитирую SUSv3: The %C conversion specification was introduced to allow a fallback for the %EC (alternative year format base year); it can be viewed as the base of the current subdivision in the Gregorian calendar. The century number is calculated as the year divided by 100 and truncated to an integer; it should not be confused with the use of ordinal numbers for centuries (for example, "twenty-first century".) -- ldv