Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format a selected UNIX timestamp as ISO 8601 and show it in a tooltip #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions contributed/Format UNIX timestamp.spBundle/command.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>author</key>
<string>Niklas Brunberg</string>
<key>category</key>
<string></string>
<key>command</key>
<string>#!/usr/bin/php
&lt;?php

// Suppress DateTime warnings because UNIX timestamps does not contain any
// timezone information, therefore it would be best to assume some default.
date_default_timezone_set(@date_default_timezone_get());

print date(DATE_ISO8601, fgets(STDIN));</string>
<key>contact</key>
<string>[email protected]</string>
<key>description</key>
<string>Format the selected UNIX timestamp as ISO 8601</string>
<key>input</key>
<string>entirecontent</string>
<key>internalKeyEquivalent</key>
<dict>
<key>characters</key>
<string>U</string>
<key>keyCode</key>
<integer>32</integer>
<key>modifierFlags</key>
<integer>1179648</integer>
</dict>
<key>keyEquivalent</key>
<string>$@U</string>
<key>name</key>
<string>UNIX Timestamper</string>
<key>output</key>
<string>showastexttooltip</string>
<key>scope</key>
<string>inputfield</string>
<key>trigger</key>
<string>none</string>
<key>uuid</key>
<string>11ECB60F-6751-4390-B7D5-D9B7CB6FC81A</string>
</dict>
</plist>