Jump to content
mwaterfall

Datetime Format Converter - Convert between unix timestamps and datetime strings

Recommended Posts

Here's a workflow that's useful for developers; it allows you to convert between timestamps and formatted datetime strings with ease.

 

Simply type "df" followed by: "now", a UTC unix timestamp, or a formatted datetime string.

 

This will present you with the parsed date in various formats ready to copy to your clipboard.

 

Download

 

screenshot_1.png

screenshot_2.png

screenshot_3.png

Edited by mwaterfall

Share this post


Link to post

Hi,

nice workflow, but i habe a little problem with my timezone. df now give me my time - 2 hours (Germany / Summertime).

Mayby you can fix it?

 

THX

Sven

Edited by 7samurai

Share this post


Link to post

OK, you just replaced Epochulator on my Macs. Too late to save me the 99¢ but the 11MB of memory and the space in my toolbar is appreciated. Awesome, and thank you!

Share this post


Link to post

Thank you, but now its gone wilder. 17:45 local shows with "now" 15:45, with tz: 13:45.

 

Can you grap the system time?

 

Greetings

Sven

 

Hmm, let me have a look. You are in germany right? CEST = +0200 UTC?

 

"now" always shows UTC, so that looks right. My tz looks wrong.

Share this post


Link to post

Thank you, but now its gone wilder. 17:45 local shows with "now" 15:45, with tz: 13:45.

 

Can you grap the system time?

 

Greetings

Sven

 

Can you show me the output you get from:

 

 

 

ls -l /etc/localtime
 

thanks

Share this post


Link to post

lrwxr-xr-x  1 root  wheel  33 11 Okt  2012 /etc/localtime -> /usr/share/zoneinfo/Europe/Berlin

 

With your latest script "df tz now" shows the correct time, "df now" shows current time -2 h

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...