From 570b04bdcf987795c552086687683def309f6304 Mon Sep 17 00:00:00 2001 From: Niklas Brunberg Date: Mon, 16 Nov 2015 14:05:15 +0100 Subject: [PATCH] Format a selected UNIX timestamp as ISO 8601 and show it in a tooltip --- .../command.plist | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 contributed/Format UNIX timestamp.spBundle/command.plist diff --git a/contributed/Format UNIX timestamp.spBundle/command.plist b/contributed/Format UNIX timestamp.spBundle/command.plist new file mode 100644 index 0000000..c640a2d --- /dev/null +++ b/contributed/Format UNIX timestamp.spBundle/command.plist @@ -0,0 +1,46 @@ + + + + + author + Niklas Brunberg + category + + command + #!/usr/bin/php +<?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)); + contact + niklas@lynks.se + description + Format the selected UNIX timestamp as ISO 8601 + input + entirecontent + internalKeyEquivalent + + characters + U + keyCode + 32 + modifierFlags + 1179648 + + keyEquivalent + $@U + name + UNIX Timestamper + output + showastexttooltip + scope + inputfield + trigger + none + uuid + 11ECB60F-6751-4390-B7D5-D9B7CB6FC81A + +