Kato Atsushi
ktats****@users*****
2006年 10月 22日 (日) 22:52:16 JST
Index: docs/modules/Time-Piece-1.08/Seconds.pod diff -u /dev/null docs/modules/Time-Piece-1.08/Seconds.pod:1.1 --- /dev/null Sun Oct 22 22:52:16 2006 +++ docs/modules/Time-Piece-1.08/Seconds.pod Sun Oct 22 22:52:16 2006 @@ -0,0 +1,104 @@ +=encoding utf-8 + +=head1 åå + +Time::Seconds - ä»ã®æ¥ä»ã®å¤ãç§ã«å¤æããç°¡åãªAPI + +=head1 æ¦è¦ + + use Time::Piece; + use Time::Seconds; + + my $t = localtime; + $t += ONE_DAY; + + my $t2 = localtime; + my $s = $t - $t2; + + print "Difference is: ", $s->days, "\n"; + +=head1 説æ + +This module is part of the Time::Piece distribution. It allows the user +to find out the number of minutes, hours, days, weeks or years in a given +number of seconds. It is returned by Time::Piece when you delta two +Time::Piece objects. + +ãã®ã¢ã¸ã¥ã¼ã«ã¯ãTime::Piece ãã£ã¹ããªãã¥ã¼ã·ã§ã³ã®ä¸é¨ã§ãã +ãã®ã¢ã¸ã¥ã¼ã«ã¯ãã¦ã¼ã¶ããåãæéãæ¥ãé±ãå¹´ã®æ°ãã +ä¸ããããç§æ°ã«è¦ã¤ãåºããã¨ãå¯è½ã«ãã¾ãã +2ã¤ã®Time::Pieceãªãã¸ã§ã¯ãã®å·®ç°ãåºãã¨ãã«ã +Time::Piece ãªãã¸ã§ã¯ãã«ãã£ã¦ãè¿ããã¾ãã + +Time::Seconds also exports the following constants: + +Time::Seconds ã¯ã¾ããä¸è¨ã®å 容ãã¤ã¯ã¹ãã¼ããã¾ã: + + ONE_DAY + ONE_WEEK + ONE_HOUR + ONE_MINUTE + ONE_MONTH + ONE_YEAR + ONE_FINANCIAL_MONTH + LEAP_YEAR + NON_LEAP_YEAR + +Since perl does not (yet?) support constant objects, these constants are in +seconds only, so you cannot, for example, do this: C<print ONE_WEEK-E<gt>minutes;> + +Perlã¯ã(ã¾ã ?)å®æ°ãªãã¸ã§ã¯ãããµãã¼ãããªãã®ã§ã +ãããã®å®æ°ã¯ç§æ°ã ãã§ãã +ã§ãã®ã§ããã¨ãã°ã次ã®ããã«ã¯ã§ãã¾ãã: C<print ONE_WEEK-E<gt>minutes;> + +=head1 ã¡ã½ãã + +The following methods are available: + +ä¸è¨ã®ã¡ã½ããã使ãã¾ã: + + my $val = Time::Seconds->new(SECONDS) + $val->seconds; + $val->minutes; + $val->hours; + $val->days; + $val->weeks; + $val->months; + $val->financial_months; # 30 days + $val->years; + +The methods make the assumption that there are 24 hours in a day, 7 days in +a week, 365.24225 days in a year and 12 months in a year. +(from The Calendar FAQ at http://www.tondering.dk/claus/calendar.html) + +ã¡ã½ããã¯ãä¸æ¥ã«24æéãä¸é±ã«7æ¥ãä¸å¹´ã«365.24225æ¥ãä¸å¹´ã«12ãµæã§ããã¨æ³å®ãã¦ãã¾ãã +(from The Calendar FAQ at http://www.tondering.dk/claus/calendar.html) + +=head1 èè + +Matt Sergeant, matt****@serge***** + +Tobias Brox, tobia****@tobia***** + +Bal�zs Szab� (dLux), dlux****@kapu***** + +=head1 ã©ã¤ã»ã³ã¹ + +Please see Time::Piece for the license. + +=head1 ãã° + +Currently the methods aren't as efficient as they could be, for reasons of +clarity. This is probably a bad idea. + +=head1 翻訳ã«ã¤ã㦠+ +翻訳è ï¼å è¤æ¦ (atusi****@pure*****) + +Perlããã¥ã¡ã³ãæ¥æ¬èªè¨³ Project ã«ã¦ã +Perlã¢ã¸ã¥ã¼ã«ãããã¥ã¡ã³ãã®ç¿»è¨³ãè¡ã£ã¦ããã¾ãã + + http://perldocjp.sourceforge.jp/ + http://sourceforge.jp/projects/perldocjp/ + http://freeml.com/ctrl/html/MLInfoForm/perld****@freem***** + http://www.perldoc.jp