API:UnitBuffLeftTime

__NOTOC__
UnitBuffLeftTime
Get the duration of a buff in seconds from a unit from an ID number.
UnitBuffLeftTime("unit",num)
== Parameter ==
:;unit
::String - the UnitID (e.g. "target", "party1", "raid1", etc..) 
:;num
::Integer - the buff ID number. 
== Returns ==
:;Duration 
::Number - the duration of the buff located at the ID number. Use number 1 to get the first buff duration the unit has, use 2 to get the second buff duration, and so on.
== Example ==
Print the duration and name of your buff located at ID 1 to the Say channel.
SendChatMessage("My first buff is " .. UnitBuff("player",1) .. " and it lasts " .. UnitBuffLeftTime("Player",1) .. " seconds.","SAY")