seconds_of_the_nanos function

BigInt seconds_of_the_nanos(
  1. BigInt nanos
)

Implementation

BigInt seconds_of_the_nanos(BigInt nanos) {
    return BigInt.parse((nanos / BigInt.from(1000000000)).toString().split('.').first);
}