Time-Piece-1.08 >
1.20
との差分
Time::Seconds 1.20 と 1.08 の差分
1 | =encoding utf-8 | |
1 | 2 | |
2 | =e | |
3 | =head1 名前 | |
3 | 4 | |
4 | ||
5 | Time::Seconds - 他の日付の値を秒に変換する簡単なAPI | |
5 | 6 | |
6 | = | |
7 | =head1 概要 | |
7 | 8 | |
8 | Time::Seconds - a simple API to convert seconds to other date values | |
9 | ||
10 | =end original | |
11 | ||
12 | Time::Seconds - 他の日付の値を秒に変換する簡単な API | |
13 | ||
14 | =head1 SYNOPSIS | |
15 | ||
16 | 9 | use Time::Piece; |
17 | 10 | use Time::Seconds; |
18 | 11 | |
19 | 12 | my $t = localtime; |
20 | 13 | $t += ONE_DAY; |
21 | 14 | |
22 | 15 | my $t2 = localtime; |
23 | 16 | my $s = $t - $t2; |
24 | 17 | |
25 | 18 | print "Difference is: ", $s->days, "\n"; |
26 | 19 | |
27 | =head1 | |
20 | =head1 説明 | |
28 | 21 | |
29 | =begin original | |
30 | ||
31 | 22 | This module is part of the Time::Piece distribution. It allows the user |
32 | 23 | to find out the number of minutes, hours, days, weeks or years in a given |
33 | 24 | number of seconds. It is returned by Time::Piece when you delta two |
34 | 25 | Time::Piece objects. |
35 | 26 | |
36 | =end original | |
37 | ||
38 | 27 | このモジュールは、Time::Piece ディストリビューションの一部です。 |
39 | このモジュールは、ユーザが、 | |
28 | このモジュールは、ユーザが、分、時間、日、週、年の数を、 | |
40 | ||
29 | 与えられた秒数に見つけ出すことを可能にします。 | |
41 | ||
30 | 2つのTime::Pieceオブジェクトの差異を出すときに、 | |
42 | Time::Piece オブジェクトによって返されます。 | |
31 | Time::Piece オブジェクトによって、返されます。 | |
43 | 32 | |
44 | =begin original | |
45 | ||
46 | 33 | Time::Seconds also exports the following constants: |
47 | 34 | |
48 | ||
35 | Time::Seconds はまた、下記の内容をイクスポートします: | |
49 | 36 | |
50 | Time::Seconds は、下記の内容もエキスポートします: | |
51 | ||
52 | 37 | ONE_DAY |
53 | 38 | ONE_WEEK |
54 | 39 | ONE_HOUR |
55 | 40 | ONE_MINUTE |
56 | 41 | ONE_MONTH |
57 | 42 | ONE_YEAR |
58 | 43 | ONE_FINANCIAL_MONTH |
59 | 44 | LEAP_YEAR |
60 | 45 | NON_LEAP_YEAR |
61 | 46 | |
62 | =begin original | |
63 | ||
64 | 47 | Since perl does not (yet?) support constant objects, these constants are in |
65 | 48 | seconds only, so you cannot, for example, do this: C<print ONE_WEEK-E<gt>minutes;> |
66 | 49 | |
67 | ||
50 | Perlは、(まだ?)定数オブジェクトをサポートしないので、 | |
51 | これらの定数は秒数だけです。 | |
52 | ですので、たとえば、次のようにはできません: C<print ONE_WEEK-E<gt>minutes;> | |
68 | 53 | |
69 | ||
54 | =head1 メソッド | |
70 | です; 従って、例えば次のようにはできません: C<print ONE_WEEK-E<gt>minutes;> | |
71 | 55 | |
72 | =head1 METHODS | |
73 | ||
74 | (メソッド) | |
75 | ||
76 | =begin original | |
77 | ||
78 | 56 | The following methods are available: |
79 | 57 | |
80 | =end original | |
81 | ||
82 | 58 | 下記のメソッドが使えます: |
83 | 59 | |
84 | 60 | my $val = Time::Seconds->new(SECONDS) |
85 | 61 | $val->seconds; |
86 | 62 | $val->minutes; |
87 | 63 | $val->hours; |
88 | 64 | $val->days; |
89 | 65 | $val->weeks; |
90 | 66 | $val->months; |
91 | 67 | $val->financial_months; # 30 days |
92 | 68 | $val->years; |
93 | 69 | |
94 | =begin original | |
95 | ||
96 | 70 | The methods make the assumption that there are 24 hours in a day, 7 days in |
97 | 71 | a week, 365.24225 days in a year and 12 months in a year. |
98 | 72 | (from The Calendar FAQ at http://www.tondering.dk/claus/calendar.html) |
99 | 73 | |
100 | ||
74 | メソッドは、一日に24時間、一週に7日、一年に365.24225日、一年に12ヵ月であると想定しています。 | |
75 | (from The Calendar FAQ at http://www.tondering.dk/claus/calendar.html) | |
101 | 76 | |
102 | ||
77 | =head1 著者 | |
103 | 1 年は 12 ヵ月であると想定しています。 | |
104 | (http://www.tondering.dk/claus/calendar.html のカレンダー FAQより) | |
105 | 78 | |
106 | =head1 AUTHOR | |
107 | ||
108 | 79 | Matt Sergeant, matt@sergeant.org |
109 | 80 | |
110 | 81 | Tobias Brox, tobiasb@tobiasb.funcom.com |
111 | 82 | |
112 | Bal | |
83 | Bal�zs Szab� (dLux), dlux@kapu.hu | |
113 | 84 | |
114 | =head1 | |
85 | =head1 ライセンス | |
115 | 86 | |
116 | =begin original | |
117 | ||
118 | 87 | Please see Time::Piece for the license. |
119 | 88 | |
120 | =e | |
89 | =head1 バグ | |
121 | 90 | |
122 | ライセンスについては Time::Piece を参照してください。 | |
123 | ||
124 | =head1 Bugs | |
125 | ||
126 | =begin original | |
127 | ||
128 | 91 | Currently the methods aren't as efficient as they could be, for reasons of |
129 | 92 | clarity. This is probably a bad idea. |
130 | 93 | |
131 | =e | |
94 | =head1 翻訳について | |
132 | 95 | |
133 | ||
96 | 翻訳者:加藤敦 (ktat.is@gmail.com) | |
134 | これはおそらく間違った考えです。 | |
135 | 97 | |
136 | ||
98 | Perlドキュメント日本語訳 Project にて、 | |
99 | Perlモジュール、ドキュメントの翻訳を行っております。 | |
137 | 100 | |
138 | ||
101 | http://perldocjp.sourceforge.jp/ | |
139 | ||
102 | http://sourceforge.jp/projects/perldocjp/ | |
103 | http://freeml.com/ctrl/html/MLInfoForm/perldocjp@freeml.com | |
141 | ||
104 | http://www.perldoc.jp | |
142 | ||
143 | =cut |