1

I'm working with a large CSV file with millions of rows. I'm using OpenRefine to manipulate this large data set.

I have a column with date strings in this format "2017-08-17 04:36:00". And I would like to convert them to Unix time in integer format like 1502944560.

I see many Q&A on converting Unix time to Date String but not the other way around. Is this possible in OpenRefine?

Scott Yu
  • 135
  • 3
  • 13

1 Answers1

4

value.toDate().datePart("time")

(see the bottom of this documentation for other conversion strings)

Ettore Rizza
  • 2,800
  • 2
  • 11
  • 23