def nsecs_to_timespec(ns):
 ns = int(ns)
 return ((ns / (10 ** 9)), (ns % (10 ** 9)))

def nsecs_to_timespec ( ns ) : ns = int ( ns ) return ( ( ns / ( 10 ** 9 ) ) , ( ns % ( 10 ** 9 ) ) )
return where ns is always non-negative and t = s + ns / 10e8 .