Unix Timestam with Date Calculator

Post Reply
matt.baile
Member
Posts: 52
Joined: Wed Nov 29, 2017 4:36 pm

Unix Timestam with Date Calculator

Post by matt.baile »

I am working on adding a Unix time stamp to a rename a file in one of my workflow. I am using the Date Calculator app from the apps store to do this, and it is working, sort of. Each file I pass through gets the same time stamp, specifically 1787025600 which is Tue Aug 18 2026 00:00:00 GMT-0400 (Eastern Daylight Time)

The problem is that no matter when I drop the file through the workflow, the Unix time stamp is still the same. The app documentation says it does down to the second, but does it not actually adjust to the actual second and only gives you one timestamp per day?

Untitled.png
Untitled.png (10.13 KiB) Viewed 42892 times
jan_suhr
Advanced member
Posts: 726
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: Unix Timestam with Date Calculator

Post by jan_suhr »

As you can see in the settings it calculates dates. Your setting is to count number of days.

There is an option to calculate time. You can try that.
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
matt.baile
Member
Posts: 52
Joined: Wed Nov 29, 2017 4:36 pm

Re: Unix Timestam with Date Calculator

Post by matt.baile »

Thank you - I did try that, but then I don't have access to the newDateTimeNumber private data unfortunately.
jan_suhr
Advanced member
Posts: 726
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: Unix Timestam with Date Calculator

Post by jan_suhr »

It calculate in two different ways, dates or time. But you can add those values with the Switch calculator. First two steps to get the two values and then calculate the two values.
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
matt.baile
Member
Posts: 52
Joined: Wed Nov 29, 2017 4:36 pm

Re: Unix Timestam with Date Calculator

Post by matt.baile »

Thank you. I have two lanes in my workflow - one which I'm just naming a file by newDateTimeNumber and one in which I'm doing a calculation as follows:
[Switch.Calculation:Expression="[Job.PrivateData:Key="newDateTimeNumber"]+[Job.PrivateData:Key="newHour"]"]


For the newDateTimeNumber, when I drop a file I get a name of 1787112000
For the calculation, I get a file name of 1787112012

Dropping another file gives me the same result in both lanes, so even though this should be to the second, it appears that I can only go to the hour in SWITCH - is that correct?

Also, I have the "Number of Days" and "Number of Hours" properties set to "0", but when deciphering my values, online calculators point to the time being 12 hours ago. Why would I have to add 12 to "Number of Hours" to get this to calculate correctly - shouldn't this be by default?

Appologies for the questions. This is a new app for me and my first time using the Unix Timestamp.
jan_suhr
Advanced member
Posts: 726
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: Unix Timestam with Date Calculator

Post by jan_suhr »

I will add current time UNIX for a PrivateData value.
It will give you the value down to milli seconds.

It will take a few days for it to go through the approval at Enfocus.
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
matt.baile
Member
Posts: 52
Joined: Wed Nov 29, 2017 4:36 pm

Re: Unix Timestam with Date Calculator

Post by matt.baile »

jan_suhr wrote: Wed Aug 19, 2026 9:53 pm I will add current time UNIX for a PrivateData value.
It will give you the value down to milli seconds.

It will take a few days for it to go through the approval at Enfocus.

Wow - that's fantastic! I had no idea you were the actual developer. Thank you! And much appreciation with all of this!!!
jan_suhr
Advanced member
Posts: 726
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: Unix Timestam with Date Calculator

Post by jan_suhr »

The new version of Date Calculator is up now in App Store
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
matt.baile
Member
Posts: 52
Joined: Wed Nov 29, 2017 4:36 pm

Re: Unix Timestam with Date Calculator

Post by matt.baile »

jan_suhr wrote: Mon Aug 24, 2026 5:48 pm The new version of Date Calculator is up now in App Store


Thank you! I updated the install and rebooted, but I'm not able to pick up the UNIX time stamp. Any thoughts on what may be happening? I thought maybe the spaces in the "Current time stamp" was causing problem, so I changed the Value name to UNIX, and that didn't give me a value either.

{C33F3D59-BB22-4C05-B69D-A34B1C075C45}.png
{C33F3D59-BB22-4C05-B69D-A34B1C075C45}.png (20.16 KiB) Viewed 31598 times
]
{750EF787-0EA8-4BC3-A541-43443A49E907}.png
{750EF787-0EA8-4BC3-A541-43443A49E907}.png (74.83 KiB) Viewed 31598 times
jan_suhr
Advanced member
Posts: 726
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: Unix Timestam with Date Calculator

Post by jan_suhr »

When an app has new properties you have to drag in a new instance of it. Before you remove the old one you can copy the properties from the old one to the new one.
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
matt.baile
Member
Posts: 52
Joined: Wed Nov 29, 2017 4:36 pm

Re: Unix Timestam with Date Calculator

Post by matt.baile »

jan_suhr wrote: Mon Aug 24, 2026 10:58 pm When an app has new properties you have to drag in a new instance of it. Before you remove the old one you can copy the properties from the old one to the new one.
I did that and restarted, but I'm still not getting a timestamp. Could you show a screenshot of the Properties to ensure I have everything set correctly? When I try to rename by the private data, I just do not get a value.
jan_suhr
Advanced member
Posts: 726
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: Unix Timestam with Date Calculator

Post by jan_suhr »

Sorry,

It was a busy week when I did this modification and apparently I missed a vital part.

A new version will be available next week.
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
matt.baile
Member
Posts: 52
Joined: Wed Nov 29, 2017 4:36 pm

Re: Unix Timestam with Date Calculator

Post by matt.baile »

jan_suhr wrote: Sat Aug 29, 2026 12:55 pm Sorry,

It was a busy week when I did this modification and apparently I missed a vital part.

A new version will be available next week.
Thank you. I updated to the latest version and this looks to be processing correctly now. Thank you!
Post Reply