TimeOnBattery indicates the elapsed time in seconds since the computer system's UPS last switched to battery power, or the ...

TimeOnBattery indicates the elapsed time in seconds since the computer system's UPS last switched to battery power, or the time since the system or UPS was last restarted, whichever is less. Zero shall be returned if the battery is 'on line'.