Article View: fj.lang.perl
Article #137Re: [Q]yy/mm/dd hh:mm:ss から連続秒数を得る方法
From: SATOH Fumiyasu
Date: Wed, 22 Apr 1998 00:00
Date: Wed, 22 Apr 1998 00:00
34 lines
1943 bytes
1943 bytes
fj.comp.lang.perl へ飛ばそう。
fj.lang.perl の記事 <6hjqg2$1i1@corona.ando.co.jp>
'98/04/22(水) 13:08:34頃、sato-k@cc.ando.co.jpさんによると:
> localtime() の反対をしたいのです。
UNIX の場合ですが、localtime() の反対は mktime() です。
(例外は知らない :-)
で、perl の場合はマニュアル(perlfunc(1))の localtime の
ところに書いてあります。
perl 5.004 patch 4 の perlfunc(1) より:
This scalar value is not locale dependent, see the
perllocale manpage, but instead a Perl builtin.
Also see the Time::Local module, and the strftime(3)
and mktime(3) function available via the POSIX
module.
Time::Local モジュールを使えとな。
> yy/mm/dd hh:mm:ss が判れば連続秒数が判ると思いますが、
> どうしたら得られるか判りません。
2000 年問題が好きなんですか?
-- >8 -- daily signature -- >8 --
佐藤文優 <fumiya@cij.co.jp,fumiya@yk.rim.or.jp>
Internet: http://www.bento.ad.jp/~fumiya/
SAMBA : http://samba.bento.ad.jp/
LAN : http://kumasun.si.ykhm.cij.co.jp/bento/
「ご理解を」納得できる説明もしないのによく言うね。
Technical Details
Message-ID:
<6hk5iv$3rh$1@hawaii.ykhm.cij.co.jp>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6hjqg2$1i1@corona.ando.co.jp>Show Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS X-Google-Thread: 1043e7,da57db9a01637149 X-Google-Attributes: gid1043e7,public X-Google-Thread: f9898,79cb446fb3c5f1e7,start X-Google-Attributes: gidf9898,public From: fumiya@cij.co.jp (SATOH Fumiyasu) Subject: Re: [Q]yy/mm/dd hh:mm:ss から連続秒数を得る方法 Date: 1998/04/22 Message-ID: <6hk5iv$3rh$1@hawaii.ykhm.cij.co.jp> X-Deja-AN: 346582910 References: <6hjqg2$1i1@corona.ando.co.jp> Followup-To: fj.comp.lang.perl Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Organization: Computer Institute of Japan, Ltd. (CIJ) Newsgroups: fj.lang.perl,fj.comp.lang.perl