mwaterfall Posted March 27, 2013 Posted March 27, 2013 (edited) 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 Edited January 16, 2014 by mwaterfall oklunden, oliverwaters, bcometa and 2 others 5
7samurai Posted April 10, 2013 Posted April 10, 2013 (edited) 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 April 10, 2013 by 7samurai
stouty Posted April 10, 2013 Posted April 10, 2013 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 Not sure if this will work for you - I added a 'tz' param to change the times to your TZ: https://gist.github.com/jamesstout/5358677
smscotten Posted April 10, 2013 Posted April 10, 2013 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!
7samurai Posted April 14, 2013 Posted April 14, 2013 Not sure if this will work for you - I added a 'tz' param to change the times to your TZ: https://gist.github.com/jamesstout/5358677 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
stouty Posted April 14, 2013 Posted April 14, 2013 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.
stouty Posted April 14, 2013 Posted April 14, 2013 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
stouty Posted April 14, 2013 Posted April 14, 2013 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 try this one: https://gist.github.com/jamesstout/5358677
7samurai Posted April 16, 2013 Posted April 16, 2013 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
oklunden Posted April 1, 2014 Posted April 1, 2014 Nice one! Would be nice if it could take the local time zone as default instead of UTC. I'm in sweden so that's UTC+2. Keep it up! :ola
stonefury Posted July 21, 2016 Posted July 21, 2016 This is helpful, but does anyone know if an existing workflow that will let me convert arbitrary times to UTC? It is helpful when debugging log files.
colinf Posted August 15, 2017 Posted August 15, 2017 I adjusted the process.py script for myself so that it always uses my local timezone: https://gist.github.com/colinfrei/ed0b34d2026092297456cceae5674977
Bingo Posted April 28, 2019 Posted April 28, 2019 adjust something https://github.com/ACBingo/alfred-datetime-format-converter support millisecond
morozgrafix Posted February 9, 2023 Posted February 9, 2023 Here is a fork updated to work with Python3 https://github.com/morozgrafix/alfred-datetime-format-converter Thanks.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now