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: 

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:{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


Add new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.

Plain text

  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Typographic refinements will be added.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.