batteryDiscargeTime1H(capacity, loadCurrent, k)

import electronics.battery.dischargetime-1

Calculate the battery discarge time if Peukert's capacity is given (also called one-ampere discharge rate).

import electronics.battery.dischargetime-1;
batteryDiscargeTime1H( 5 Ah, 2 A )
capacitythe battery's Peukert capacity.
loadCurrentload current.
kPeukerts constant. It depends on battery type. If not given 1.3 is assumed.
return valuethe discharge time of the battery.

NOTE: This is only a very rare case. Batteries usually specify 20 hour discharge rates. For more details, see batteryDiscargeTime.

For more details, see https://en.wikipedia.org/wiki/Peukert's_law, http://www.smartgauge.co.uk/peukert2.html.