| Audio::MPD::Common::Time - class representing time of current song |
Audio::MPD::Common::Time - class representing time of current song
version 1.100430
the Audio::MPD::Common::Status manpage returns some time information with the
time() accessor. This information relates to the elapsed time of the
current song, as well as the remaining and total time. This information
is encapsulated in an the Audio::MPD::Common::Time manpage object.
An the Audio::MPD::Common::Time manpage object does not update itself regularly, and thus should be used immediately.
Note: one should never ever instantiate an the Audio::MPD::Common::Time manpage object directly - use the mpd modules instead.
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 MPD
server returns to the status command. Defaults to 0:0.
Return elapsed $time (minutes:seconds format).
Return remaining $time (minutes:seconds format).
Return total $time (minutes:seconds format).
Return elapsed $time (percentage, 1 digit).
Return elapsed $time in seconds.
Return remaining $time in seconds.
Return total $time in seconds.
Return minutes part of elapsed $time.
Return seconds part of elapsed $time.
Return minutes part of remaining $time.
Return seconds part of remaining $time.
Return minutes part of total $time.
Return seconds part of total $time.
Jerome Quelin
This software is copyright (c) 2007 by Jerome Quelin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
| Audio::MPD::Common::Time - class representing time of current song |