Steven Haryanto > Time-Duration-Patch-Millisecond-0.03 > Time::Duration::Patch::Millisecond

Download:
Time-Duration-Patch-Millisecond-0.03.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.03   Source  

NAME ^

Time::Duration::Patch::Millisecond - (DEPRECATED) Make Time::Duration support milliseconds

VERSION ^

version 0.03

SYNOPSIS ^

 # patch first before importing! otherwise you'll get unpatched version of
 # concise(), interval(), and other routines.
 use Time::Duration::Patch::Millisecond;

 use Time::Duration;

 say ago(0.3); # => 300 milliseconds ago
 say concise(duration(2.03)); # => 2s30ms

DESCRIPTION ^

This module contains patch for Time::Duration to support milliseconds. I am also in the process of asking Time::Duration's maintainer whether he/she wants to merge this into Time::Duration. See RT#81960. UPDATE 2013-04-17: Time::Duration 1.1 is now released which contains millisecond support. Therefore this patch is now declared deprecated.

Locale modules like Time::Duration::id or Time::Duration::fr might want to translate 'millisecond(s)' and provide its concise version as well.

SEE ALSO ^

Time::Duration

AUTHOR ^

Steven Haryanto <stevenharyanto@gmail.com>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by Steven Haryanto.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: