ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Vyatcheslav Perevalov <vip0@seversk.ru>
To: hihin@rambler.ru,
	ALT Linux Community general discussions
	<community@lists.altlinux.org>
Subject: Re: [Comm] date: неправильна дата
Date: Wed, 22 Jun 2011 16:54:44 +0700
Message-ID: <201106221654.45317.vip0@seversk.ru> (raw)
In-Reply-To: <201106221205.56476@ruslandh>

В сообщении от 22 июня 2011 15:05:51 автор Хихин Руслан написал:
> Не очень понял с чем это связано, возможно с локалью.
> 
> $ date -d '1899-12-31 +20079 days'
> Срд Дек 22 00:00:00 MSK 1954
> $ date -d '1901-12-13 +2 days'
> Вск Дек 15 00:00:00 MMT 1901
> $ date -d '1901-12-14 +2 days'
> Пнд Дек 16 00:00:00 MMT 1901
> 
> и даже
> $ date -d '1655-12-13 +2 days'
> Срд Дек 15 00:00:00 LMT 1655

На сизифе (i586):

[vip@workstation ~]$ date -d '1899-12-31 +20079 days'
date: неверная дата «1899-12-31 +20079 days»
[vip@workstation ~]$ date -d '1901-12-13 +2 days'
date: неверная дата «1901-12-13 +2 days»
[vip@workstation ~]$ date -d '1901-12-14 +2 days'
date: неверная дата «1901-12-14 +2 days»
[vip@workstation ~]$ date -d '1655-12-13 +2 days'
date: неверная дата «1655-12-13 +2 days»

но
[vip@workstation ~]$ date -d '1955-12-13 +2 days'
Чтв Дек 15 00:00:00 NOVT 1955
[vip@workstation ~]$ date -d '1945-12-13 +2 days'
Сбт Дек 15 00:00:00 NOVT 1945
[vip@workstation ~]$ date -d '1935-12-13 +2 days'
Вск Дек 15 00:00:00 NOVT 1935
[vip@workstation ~]$ date -d '1925-12-13 +2 days'
Втр Дек 15 00:00:00 NOVT 1925
[vip@workstation ~]$ date -d '1915-12-13 +2 days'
Срд Дек 15 00:00:00 LMT 1915
[vip@workstation ~]$ date -d '1905-12-13 +2 days'
Птн Дек 15 00:00:00 LMT 1905
[vip@workstation ~]$ date -d '1900-12-13 +2 days'
date: неверная дата «1900-12-13 +2 days»
[vip@workstation ~]$ date -d '1901-12-13 +2 days'
date: неверная дата «1901-12-13 +2 days»
[vip@workstation ~]$ date -d '1902-12-13 +2 days'
Пнд Дек 15 00:00:00 LMT 1902

-- 
/vip

  parent reply	other threads:[~2011-06-22  9:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-22  7:48 vsol
2011-06-22  8:05 ` Хихин Руслан
2011-06-22  8:20   ` K. A. Bylym
2011-06-22  9:21     ` Yura Kalinichenko
2011-06-22  9:57       ` Anton Gorlov
2011-06-22 10:32       ` K. A. Bylym
2011-06-22 19:15       ` Sergey Vlasov
2011-06-22  9:56     ` Anton Gorlov
2011-06-22  9:54   ` Vyatcheslav Perevalov [this message]
2011-06-22 10:05     ` Vyatcheslav Perevalov

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=201106221654.45317.vip0@seversk.ru \
    --to=vip0@seversk.ru \
    --cc=community@lists.altlinux.org \
    --cc=hihin@rambler.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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

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


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