ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: Re: [sisyphus] Век в date
Date: Wed, 14 Apr 2004 16:20:41 +0400
Message-ID: <20040414122041.GA22408@basalt.office.altlinux.org> (raw)
In-Reply-To: <1081944234.2269.155.camel@nest.ic.yar.mvd.ru>

[-- Attachment #1: Type: text/plain, Size: 1185 bytes --]

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

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2004-04-14 12:20 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-14 11:39 Денис Якимов
2004-04-14 11:44 ` Serge Polkovnikov
2004-04-14 11:49   ` Nick S. Grechukh
2004-04-14 12:50     ` Serge Pavlovsky
2004-04-14 12:57       ` Nick S. Grechukh
2004-04-14 16:44     ` Epiphanov Sergei
2004-04-15  2:32       ` [JT] " Evgeny Yugov
2004-04-14 11:52   ` Денис Якимов
2004-04-14 11:56     ` Dmitry V. Levin
2004-04-14 12:03       ` Денис Якимов
2004-04-14 12:20         ` Dmitry V. Levin [this message]
2004-04-14 12:38         ` [sisyphus] Век в date[JT] iLya Bryzgalow
2004-04-14 11:57     ` [sisyphus] Век в date Alexey I. Froloff
2004-04-14 13:32       ` [sisyphus] " Oleg N. Kayunov
2004-04-14 11:52 ` [sisyphus] " Alexey I. Froloff
2004-04-14 12:51   ` [sisyphus] Re: [JT] " Vitaly Ostanin
2004-04-14 13:06     ` Alexey I. Froloff
2004-04-14 12:54 ` [sisyphus] Administativia Dmitry V. Levin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040414122041.GA22408@basalt.office.altlinux.org \
    --to=ldv@altlinux.org \
    --cc=sisyphus@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git