1

I need help with the following: I am trying to convert a nanotime object in R such as:

x <- nanotime("2000-01-01T15:00:00.000000001+00:00")

into nanoseconds passed since January 1, 1970. Is there an easy way to accomplish this?

Ronak Shah
  • 377,200
  • 20
  • 156
  • 213
AndyArt
  • 11
  • 1
  • I don't think the duplicate correctly addresses the question. Have you tried using `as.numeric(x)` ? – Ronak Shah Feb 09 '21 at 08:35
  • 1
    Thanks Ronah, as.numeric(x) did not work but It gave me the idea to try as.integer64(x) and that worked! – AndyArt Feb 09 '21 at 08:45

0 Answers0