Skip to content

Instantly share code, notes, and snippets.

@blaues0cke
Created July 19, 2015 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blaues0cke/f8d17a4dbdb3eb79894b to your computer and use it in GitHub Desktop.
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
#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