Time-Piece-1.20 > 1.08 との差分

Time::Seconds 1.08 と 1.20 の差分

1=encoding utf-8
21
3=head1 名前
2=encoding euc-jp
43
5Time::Seconds - 他の日付の値を秒に変換する簡単なAPI
4=head1 NAME
65
7=head1 概要
6=begin original
87
8Time::Seconds - a simple API to convert seconds to other date values
9
10=end original
11
12Time::Seconds - 他の日付の値を秒に変換する簡単な API
13
14=head1 SYNOPSIS
15
916 use Time::Piece;
1017 use Time::Seconds;
1118
1219 my $t = localtime;
1320 $t += ONE_DAY;
1421
1522 my $t2 = localtime;
1623 my $s = $t - $t2;
1724
1825 print "Difference is: ", $s->days, "\n";
1926
20=head1 説明
27=head1 DESCRIPTION
2128
29=begin original
30
2231This module is part of the Time::Piece distribution. It allows the user
2332to find out the number of minutes, hours, days, weeks or years in a given
2433number of seconds. It is returned by Time::Piece when you delta two
2534Time::Piece objects.
2635
36=end original
37
2738このモジュールは、Time::Piece ディストリビューションの一部です。
28このモジュールは、ユーザが、分、時間、日、週、年の数を、
39このモジュールは、ユーザが、指定された秒数が分、時間、日、週、年
29与えられた秒数に見け出すこと可能にします。
40いくになるのか出せるようにします。
302つのTime::Pieceオブジェクトの差を出すときに、
41つの Time::Piece オブジェクトの差を出すときに、
31Time::Piece オブジェクトによって返されます。
42Time::Piece オブジェクトによって返されます。
3243
44=begin original
45
3346Time::Seconds also exports the following constants:
3447
35Time::Seconds はまた、下記の内容をイクスポートします:
48=end original
3649
50Time::Seconds は、下記の内容もエキスポートします:
51
3752 ONE_DAY
3853 ONE_WEEK
3954 ONE_HOUR
4055 ONE_MINUTE
4156 ONE_MONTH
4257 ONE_YEAR
4358 ONE_FINANCIAL_MONTH
4459 LEAP_YEAR
4560 NON_LEAP_YEAR
4661
62=begin original
63
4764Since perl does not (yet?) support constant objects, these constants are in
4865seconds only, so you cannot, for example, do this: C<print ONE_WEEK-E<gt>minutes;>
4966
50Perlは、(まだ?)定数オブジェクトをサポートしないので、
67=end original
51これらの定数は秒数だけです。
52ですので、たとえば、次のようにはできません: C<print ONE_WEEK-E<gt>minutes;>
5368
54=head1 メソッド
69Perl は(まだ?)定数オブジェクトに対応していないので、これらの定数は秒数だけ
70です; 従って、例えば次のようにはできません: C<print ONE_WEEK-E<gt>minutes;>
5571
72=head1 METHODS
73
74(メソッド)
75
76=begin original
77
5678The following methods are available:
5779
80=end original
81
5882下記のメソッドが使えます:
5983
6084 my $val = Time::Seconds->new(SECONDS)
6185 $val->seconds;
6286 $val->minutes;
6387 $val->hours;
6488 $val->days;
6589 $val->weeks;
6690 $val->months;
6791 $val->financial_months; # 30 days
6892 $val->years;
6993
94=begin original
95
7096The methods make the assumption that there are 24 hours in a day, 7 days in
7197a week, 365.24225 days in a year and 12 months in a year.
7298(from The Calendar FAQ at http://www.tondering.dk/claus/calendar.html)
7399
74メソッドは、一日に24時間、一週に7日、一年に365.24225日、一年に12ヵ月であると想定しています。
100=end original
75(from The Calendar FAQ at http://www.tondering.dk/claus/calendar.html)
76101
77=head1 著者
102メソッドは、1 日は 24 時間、1 週は 7 日、1 年は 365.24225 日、
1031 年は 12 ヵ月であると想定しています。
104(http://www.tondering.dk/claus/calendar.html のカレンダー FAQより)
78105
106=head1 AUTHOR
107
79108Matt Sergeant, matt@sergeant.org
80109
81110Tobias Brox, tobiasb@tobiasb.funcom.com
82111
83Balzs Szab (dLux), dlux@kapu.hu
112BalE<aacute>zs SzabE<oacute> (dLux), dlux@kapu.hu
84113
85=head1 ライセンス
114=head1 LICENSE
86115
116=begin original
117
87118Please see Time::Piece for the license.
88119
89=head1 バグ
120=end original
90121
122ライセンスについては Time::Piece を参照してください。
123
124=head1 Bugs
125
126=begin original
127
91128Currently the methods aren't as efficient as they could be, for reasons of
92129clarity. This is probably a bad idea.
93130
94=head1 翻訳について
131=end original
95132
96翻訳者:加藤敦 (ktat.is@gmail.com)
133今のところメソッドは明確化のためにそれほど効率的ではありません。
134これはおそらく間違った考えです。
97135
98Perlドキュメント日本語訳 Project にて、
136=begin meta
99Perlモジュール、ドキュメントの翻訳を行っております。
100137
101 http://perldocjp.sourceforge.jp/
138Translate: 加藤敦 <ktat.is@gmail.com> (1.08)
102 http://sourceforge.jp/projects/perldocjp/
139Update: SHIRAKATA Kentaro <argrath@ub32.org> (1.20)
103 http://freeml.com/ctrl/html/MLInfoForm/perldocjp@freeml.com
104 http://www.perldoc.jp
141=end meta
142
143=cut