Convert Unixtime with Alfred

If you’re anything like me you have a regular need to know that 1242007264 in “Unixtime” means Monday 11th May 2009 02:01:04 AM in plain-language UTC.

Up to this point I’d been calling up a Terminal session, and doing something like: 

php -a
print strftime("%Y-%m-%d %H:%M:%S",1242007264);

But there had to be a better way!  So, in Alfred I created a new custom search:

  • Search URL is: http://www.convert-unix-time.com/?t={query}
  • Title is: Convert Unixtime
  • Keyword is: ut

Now all I need to do is activate Alfred and type ut 1242007264 and, voila. 

Screen shot of Alfred

Comments