wowpedia
Main Menu


Returns the amount of "healthy" time left for players on Chinese realms.

secondsRemaining = GetBillingTimeRested()

Returns

secondsRemaining
number - Amount of time left in seconds to play as rested. See details below for clarification. Returns nil for EU and US accounts.

Example

The official function (modified to output in the chat frame) when you have partial play time left:

print(string.format(PLAYTIME_TIRED, REQUIRED_REST_HOURS - math.floor(GetBillingTimeRested()/60)))

The official function (modified to output in the chat frame) when you have no play time left at all:

print(string.format(PLAYTIME_UNHEALTHY, REQUIRED_REST_HOURS - math.floor(GetBillingTimeRested()/60)))

Details

See also