Skip to content
Sections
>> Trisquel >> パッケージ >> etiona >> perl >> libtime-duration-perl
etiona  ] [  nabia  ] [  aramo  ]
[ ソース: libtime-duration-perl  ]

パッケージ: libtime-duration-perl (1.20-1)

module for rounded or exact English expression of durations

Time::Duration provides functions for expressing time spans in rounded or exact terms. So while

   say duration_exact(86399);

will correctly give "23 hours, 59 minutes, and 59 seconds",

   say ago(86399);

will output the rounded time span as "1 day ago".

The provided functions are duration(), ago(), from_now(), later() and earlier(), along with their *_exact counterparts. The precision used for rounding can be specified, and version 1.10 added a millisecond mode.

その他の libtime-duration-perl 関連パッケージ

  • 依存
  • 推奨
  • 提案
  • dep: perl
    Larry Wall's Practical Extraction and Report Language

libtime-duration-perl のダウンロード

すべての利用可能アーキテクチャ向けのダウンロード
アーキテクチャ パッケージサイズ インストールサイズ ファイル
all 13.0 kB63 kB [ファイル一覧]