Created
July 19, 2015 14:33
-
-
Save blaues0cke/f8d17a4dbdb3eb79894b to your computer and use it in GitHub Desktop.
Automatically convert a unix timestamp to human readable data when copied to the clipboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Persistent | |
return | |
OnClipboardChange: | |
currentClipboardData = %clipboard% | |
if currentClipboardData is integer | |
{ | |
if currentClipboardData > 1000000000 | |
{ | |
T = %currentClipboardData% | |
S = 1970 | |
S += T,s | |
S += 2,hours | |
FormatTime, ReadAbleDate, %S%, dd.MM.yyyy HH:mm:ss | |
SplashTextOn, 300, , %T% = %ReadAbleDate% | |
WinMove, %T%, , 500, 500 | |
} | |
} | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment