DateTime :: Format :: Duration.

Çü½Ä ¹× ÆÄ½Ì DateTime :: Dutions
Áö±Ý ´Ù¿î·Îµå

DateTime :: Format :: Duration. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Rick Measham
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~rickm/

DateTime :: Format :: Duration. ű×


DateTime :: Format :: Duration. ¼³¸í

Çü½Ä ¹× ±¸¹® ºÐ¼® DateTime :: Durations. DateTime :: format :: durationÀº DateTime :: duration °´Ã¼¿Í ´Ù¸¥ Áö¼Ó ½Ã°£ Ç¥ÇöÀ» Çü½ÄÈ­ÇÏ°í ±¸¹® ºÐ¼®ÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù. ½Ä ³ëÇÁ·¹ÀÌ¼Ç DateTime :: Format :: Duration; $ d = datetime :: format :: duration-> new (pattern => '% years, % m °³¿ù, % e years,'% h ½Ã°£, % m ºÐ, % s ÃÊ '); $ d-> format_duration Àμâ (datetime :: duration-> new (years => 3, month => ÀÏ => 1, ½Ã°£ => ÀÏ => 1 ½Ã°£ => 6, ºÐ => 15 ÃÊ => 45, nanoseconds => 12000) ); # 3 ³â, 5 °³¿ù, 1 ÀÏ, 6 ½Ã°£, 15 ºÐ, 45 ÃÊ $ = $ d-> parse_duration ( '3 ³â, 5 °³¿ù, 1 ÀÏ, 6 ½Ã°£, 15 ºÐ, 45 ÃÊ'); # datetime :: duration object Àμâ $ d-> format_duration_from_deltas (yeary => 3, month => ÀÏ, ÀÏ => 1, ½Ã°£ => 6, ºÐ => 15 ÃÊ => 45, nanoseconds => 12000); # 3 ³â, 5 °³¿ù, 1 ÀÏ, 6 ½Ã°£, 15 ºÐ, 45 ÃÊ ltas = $ d-> parse_duration_as_deltas ( '3 ³â, 5 °³¿ù, 1 ÀÏ, 6 ½Ã°£, 15 ºÐ, 45 ÃÊ'); # ¹Ýȯ Çؽà : # (³â => 3, month => ÀÏ, ÀÏ => 1, ½Ã°£ => 6, ºÐ => 15 ÃÊ => 45) ¿ä±¸ »çÇ× : ¡¤ Perl.


DateTime :: Format :: Duration. °ü·Ã ¼ÒÇÁÆ®¿þ¾î