Export CSV with timestamp?

Discussion related to "Everything" 1.5 Alpha.
Post Reply
dedupeit
Posts: 13
Joined: Thu Jul 28, 2022 9:52 pm

Export CSV with timestamp?

Post by dedupeit »

Based on a different post, I learned to use this to get a single field/column with Date Taken (pictures) or Media Created (videos):

Code: Select all

<regex:tostring:datetaken:(.+)>|<regex:tostring:datemediacreated:(.+)>
I'm exporting the results to CSV format so that I can get this custom field/column in the export. It's exported as readable date/time such as "2016-03-01 18:26:03". Is there a way to get it to export the epoch timestamp? Similar to when you export to the EFU format?
therube
Posts: 4985
Joined: Thu Sep 03, 2009 6:48 pm

Re: Export CSV with timestamp?

Post by therube »

I'm not familiar with that, but what happens if you remove "tostring:" ?
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: Export CSV with timestamp?

Post by void »

Does including the following in your search help:

<datetaken: column1:=datetaken:> | <mediacreated: column1:=mediacreated:> | <column1:=> addcolumn:column1
dedupeit
Posts: 13
Joined: Thu Jul 28, 2022 9:52 pm

Re: Export CSV with timestamp?

Post by dedupeit »

void wrote: Sat Sep 17, 2022 12:10 am Does including the following in your search help:
<datetaken: column1:=datetaken:> | <mediacreated: column1:=mediacreated:> | <column1:=> addcolumn:column1
This does create a column named "column1" but it is empty for all of my files.
therube wrote: Fri Sep 16, 2022 7:28 pm I'm not familiar with that, but what happens if you remove "tostring:" ?
Interesting idea but if I remove "tostring", I get no data. I'm not verify familiar with the syntax and functionality that's being used here...I was just lucky enough someone else had shared that :)
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: Export CSV with timestamp?

Post by void »

I should have mentioned, column1:= will only work with the latest alpha (1318a).
What version are you using?
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: Export CSV with timestamp?

Post by void »

Another option is to enable detailed CSV exports:
  • Copy and paste the following into your Everything Search box:
    /csv_type=1
  • Press ENTER in your Everything Search box.
  • If successful, csv_type=1 is shown in the status bar for a few seconds.


csv_type
dedupeit
Posts: 13
Joined: Thu Jul 28, 2022 9:52 pm

Re: Export CSV with timestamp?

Post by dedupeit »

void wrote: Sat Sep 17, 2022 1:51 am I should have mentioned, column1:= will only work with the latest alpha (1318a).
What version are you using?
Ah, I was running an older alpha version. This works perfectly! I don't know what kind of sorcery this is but I love it :D

Thanks void!

EDIT: hmmm, the data doesn't look like normal epoch timestamps. I'll see if I can figure out what it means.
Post Reply