Jump to content

Unix timestamp: Fetch timestamp for any date

Recommended Posts

Download: http://cl.ly/0l210T3y2L1y


This workflow has three major functions, which are really only useful for developers.

  1. Fetch current unix timestamp.
  2. Convert a unix timestamp into the DATETIME format.
  3. Fetch a unix timestamp for a future date.


  1. "ts" : 1363987228
  2. "ts 1363987228" : 2013-03-22 05:20:28 
  3. "ts next thursday" : 1364443200
  4. "ts 3/5/2013" : 1362502800
  5. "ts 1 year ago" : 1332451288

The results are displayed as a notification and copied into the clipboard.  You may optionally edit the workflow and enable pasting into the foremost application.


Note that this workflow uses a PHP script, and so uses the date.timezone value in your Mac's php.ini file.  If you get inaccurate timestamps, check that value (usually found at /etc/php.ini.default).



Edited by jgpippin

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.

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...