API:GetPlayerBuffLeftTime

__NOTOC__
GetPlayerBuffLeftTime
GetPlayerBuffLeftTime
GetPlayerBuffLeftTime(idx)
Used to determine the amount of time remaining for a certain buff (= effect duration time left).
== Parameters ==
=== Arguments ===
:;idx
::number - The index can be retrieved by calling GetPlayerBuff.
=== Returns ===
:;number
::number - Time left.
== Example ==
 DEFAULT_CHAT_FRAME:AddMessage( GetPlayerBuffLeftTime( GetPlayerBuff(1, "HELPFUL") )/60);
 DEFAULT_CHAT_FRAME:AddMessage( GetPlayerBuffLeftTime( 0 )/60);
Both return time left from first buff icon on player.
== Notes ==
== Related Functions ==
* GetPlayerBuff