[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[plamo:24029] Re: date
-
From:OOSATO,Kazzrou
-
Date:Sun, 31 Oct 2004 13:20:43 +0900 (JST)
- Subject: [plamo:24029] Re: date
- From: "OOSATO,Kazzrou" <kazz@xxxxxxxxxxxxxx>
- Date: Sun, 31 Oct 2004 13:20:43 +0900
- Organization: Tomonet Service corp.
大里です。
> From: KOJIMA
> Subject: [plamo:24026] Re: date
> Date: Sun, 31 Oct 2004 11:17:05 +0900 (JST)
> たまたま手元で動かしていた Fedora Core2 の date は coreutils 由来のも
> のになっていて,一般常識的な「月末」を返すようになっているみたい.
>
> [kojima@localhost kojima]$ date --version
> date (coreutils) 5.2.1
> Written by David MacKenzie.
>
> Copyright (C) 2004 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> [kojima@localhost kojima]$ date --date "-1 month" +%m
> 09
> [kojima@localhost kojima]$ date --date "+1 month" +%m
> 11
> [kojima@localhost kojima]$ date --date "+2 month" +%m
> 12
> [kojima@localhost kojima]$ date --date "-2 month" +%m
> 08
む?うちの FC2 と違う。
[kazz@orbiter kazz]$ date
Sun Oct 31 12:58:40 JST 2004
[kazz@orbiter kazz]$ date --version
date (coreutils) 5.2.1
Written by David MacKenzie.
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[kazz@orbiter kazz]$ date
Sun Oct 31 13:00:32 JST 2004
[kazz@orbiter kazz]$ for i in -2 -1 0 1 2; do date --date "${i} month" +%Y/%m/%d; done
2004/08/31
2004/10/01
2004/10/31
2004/12/01
2004/12/31
なぜだろう?。。。。
--
kazz
- Follow-Ups
-
- [plamo:24032] Re: date, 早間義博
- [plamo:24035] Re: date, KOJIMA Mitsuhiro
- References
-
- [plamo:24020] date, 早間義博
- [plamo:24023] Re: date, OOSATO,Kazzrou
- [plamo:24026] Re: date, KOJIMA Mitsuhiro
[検索ページ]
[メール一覧]
Plamo ML 公開システム