mwaterfall Posted March 27, 2013 Share 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, dkoder, bcometa and 2 others 5 Link to comment
oliverwaters Posted March 29, 2013 Share Posted March 29, 2013 Nice one! Very useful indeed. Link to comment
7samurai Posted April 10, 2013 Share 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 Link to comment
stouty Posted April 10, 2013 Share 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 Link to comment
smscotten Posted April 10, 2013 Share 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! Link to comment
yee Posted April 11, 2013 Share Posted April 11, 2013 Thank you, it's very convenient. Link to comment
7samurai Posted April 14, 2013 Share 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 Link to comment
stouty Posted April 14, 2013 Share 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. Link to comment
stouty Posted April 14, 2013 Share 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 Link to comment
stouty Posted April 14, 2013 Share 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 Link to comment
7samurai Posted April 16, 2013 Share 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 Link to comment
oklunden Posted April 1, 2014 Share 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 Link to comment
stonefury Posted July 21, 2016 Share 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. Link to comment
colinf Posted August 15, 2017 Share 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 Link to comment
Bingo Posted April 28, 2019 Share Posted April 28, 2019 adjust something https://github.com/ACBingo/alfred-datetime-format-converter support millisecond Link to comment
morozgrafix Posted February 9 Share Posted February 9 Here is a fork updated to work with Python3 https://github.com/morozgrafix/alfred-datetime-format-converter Thanks. Link to comment
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