Issue converting unixNano

I try to convert the unixNano to seconds but I get error with
lambda: 0.000001*float(unixNano(now()))