ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Хихин Руслан" <ruslandh@gmail.com>
To: community@lists.altlinux.org
Subject: Re: [Comm] date: неправильна дата
Date: Wed, 22 Jun 2011 12:05:51 +0400
Message-ID: <201106221205.56476@ruslandh> (raw)
In-Reply-To: <4E019E52.9080801@kkz.kiev.ua>

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

Здравствуйте vsol
  В сообщении от 22 июня 2011 vsol написал(a):
> нужна дата рождения сотрудника
> 20079 -  первые 5 знаков индивидуального кода
> [vsol@irbis printing]$ date -d '1899-12-31 +20079 days'
> date: неправильна дата `1899-12-31 +20079 days'
>
> приходится загружать OOcalc  и  .... ;0)
>
> Решил проверить с какой же даты считается правильна дата
> [vsol@irbis printing]$ date -d '1901-12-13 +2 days'
> date: неправильна дата `1901-12-13 +2 days'
>
> [vsol@irbis printing]$ date -d '1901-12-14 +2 days'
> понеділок, 16 грудня 1901 00:00:00 +0202
>
> Можно ли что-бы работало с любыми датами?
Не очень понял с чем это связано, возможно с локалью.

$ 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


-- 
***
  А ещё говорят так  (fortune):
 
If you don't know what game you're playing, don't ask what the 
score is. 
________________________________________________________________________
С уважением Хихин Руслан

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2011-06-22  8:05 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 ` Хихин Руслан [this message]
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
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=201106221205.56476@ruslandh \
    --to=ruslandh@gmail.com \
    --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