GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  AUDIO::MPD::COMMON::TIME (3)

.ds Aq ’

NAME

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

CONTENTS

VERSION

version 2.003

DESCRIPTION

Audio::MPD::Common::Status 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 Audio::MPD::Common::Time object.

An Audio::MPD::Common::Time object does <B>notB> update itself regularly, and thus should be used immediately.

Note: one should <B>neverB> ever instantiate an Audio::MPD::Common::Time object directly - use the mpd modules instead.

ATTRIBUTES

CW$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 MPD server returns to the status command. Defaults to 0:0.

METHODS

my CW$str = CW$time->sofar;

Return elapsed $time (minutes:seconds format).

my CW$str = CW$time->left;

Return remaining $time (minutes:seconds format).

my CW$str = CW$time->left;

Return total $time (minutes:seconds format).

my CW$percent = CW$time->percent;

Return elapsed $time (percentage, 1 digit).

my CW$secs = CW$time->seconds_sofar;

Return elapsed $time in seconds.

my CW$secs = CW$time->seconds_left;

Return remaining $time in seconds.

my CW$secs = CW$time->seconds_total;

Return total $time in seconds.

my CW$mins = CW$time->sofar_mins;

Return minutes part of elapsed $time.

my CW$secs = CW$time->sofar_secs;

Return seconds part of elapsed $time.

my CW$mins = CW$time->left_mins;

Return minutes part of remaining $time.

my CW$secs = CW$time->left_secs;

Return seconds part of remaining $time.

my CW$mins = CW$time->total_mins;

Return minutes part of total $time.

my CW$mins = CW$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 under the same terms as the Perl 5 programming language system itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 AUDIO::MPD::COMMON::TIME (3) 2016-04-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.