Skip to content

Another approach to convert time duration concise string to time duration and localize it in your own language

Notifications You must be signed in to change notification settings

deriv-com/perl-Time-Duration-Concise-Localize

Repository files navigation

NAME

Time::Duration::Concise::Localize - localize concise time duration string representation.

DESCRIPTION

Time::Duration::Concise provides localize concise time duration string representation.

SYNOPSIS

use Time::Duration::Concise::Localize;

my $duration = Time::Duration::Concise::Localize->new(

    # concise time interval
    'interval' => '1.5h',

    # Locale for translation
    'locale' => 'en'
);

$duration->as_string;

FIELDS

interval (REQUIRED)

concise interval string

locale

Get and set the locale for translation

METHODS

as_string

Localized duration string

new

Object constructor

AUTHOR

Binary.com, <perl at binary.com>

BUGS

Please report any bugs or feature requests to bug-time-duration-concise-localize at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Time-Duration-Concise-Localize. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Time::Duration::Concise::Localize

You can also look for information at:

About

Another approach to convert time duration concise string to time duration and localize it in your own language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages