SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG
DONATE




YUM REPOSITORY

 
 

MAN page from Mandriva 2010 perl-Audio-MPD-Common-1.100.430-1mdv2010.1.noarch.rpm

Audio::MPD::Common::Time

Section: User Contributed Perl Documentation (3)
Updated: 2010-02-13
Index 

NAME

Audio::MPD::Common::Time - class representing time of current song 

VERSION

version 1.100430 

DESCRIPTION

Audio::MPD::Common::Status returns some time information with the"time()" accessor. This information relates to the elapsed time of thecurrent song, as well as the remaining and total time. This informationis encapsulated in an Audio::MPD::Common::Time object.

An Audio::MPD::Common::Time object does not update itselfregularly, and thus should be used immediately.

Note: one should never ever instantiate an Audio::MPD::Common::Timeobject directly - use the mpd modules instead. 

ATTRIBUTES

 

$time->time;

The time passed to the constructor, used to compute all others values(see methods). It is the time value (on the ``time'' line) of what the MPDserver returns to the status command. Defaults to "0:0". 

METHODS

 

my $str = $time->sofar;

Return elapsed $time ("minutes:seconds" format). 

my $str = $time->left;

Return remaining $time ("minutes:seconds" format). 

my $str = $time->left;

Return total $time ("minutes:seconds" format). 

my $percent = $time->percent;

Return elapsed $time (percentage, 1 digit). 

my $secs = $time->seconds_sofar;

Return elapsed $time in seconds. 

my $secs = $time->seconds_left;

Return remaining $time in seconds. 

my $secs = $time->seconds_total;

Return total $time in seconds. 

my $mins = $time->sofar_mins;

Return minutes part of elapsed $time. 

my $secs = $time->sofar_secs;

Return seconds part of elapsed $time. 

my $mins = $time->left_mins;

Return minutes part of remaining $time. 

my $secs = $time->left_secs;

Return seconds part of remaining $time. 

my $mins = $time->total_mins;

Return minutes part of total $time. 

my $mins = $time->total_secs;

Return seconds part of total $time. 

AUTHOR

  Jerome Quelin
 

COPYRIGHT AND LICENSE

This software is copyright (c) 2007 by Jerome Quelin.

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


 

Index

NAME
VERSION
DESCRIPTION
ATTRIBUTES
$time->time;
METHODS
my $str = $time->sofar;
my $str = $time->left;
my $str = $time->left;
my $percent = $time->percent;
my $secs = $time->seconds_sofar;
my $secs = $time->seconds_left;
my $secs = $time->seconds_total;
my $mins = $time->sofar_mins;
my $secs = $time->sofar_secs;
my $mins = $time->left_mins;
my $secs = $time->left_secs;
my $mins = $time->total_mins;
my $mins = $time->total_secs;
AUTHOR
COPYRIGHT AND LICENSE

This document was created byman2html,using the manual pages.