toLong
fun toLong(unit: DurationUnit): Long
Returns the value of this duration expressed as a Long number of the specified unit.
If the value doesn't fit in the range of Long type, it is coerced into that range, see the conversion Double.toLong for details.