Skip to content

Instantly share code, notes, and snippets.

@QuadStorm
Created January 1, 2020 06:17
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 QuadStorm/26dea19ac8e40f14fe7902a35eda5b0e to your computer and use it in GitHub Desktop.
Save QuadStorm/26dea19ac8e40f14fe7902a35eda5b0e to your computer and use it in GitHub Desktop.
2020-01-01 00:00:00
function ISOTimeStampFormat(%dateTime)
{
%pDT = strReplace(%dateTime, "/", " ");
return "20" @ getWord(%pDT, 2) @ "-" @ getWord(%pDT, 0) @ "-" @ getWord(%pDT, 1) SPC getWord(%pDT, 3);
}
function timeBottomPrint()
{
if (isEventPending($timeBottomPrint))
{
cancel($timeBottomPrint);
}
clientCmdBottomPrint("\c6" @ ISOTimeStampFormat(getDateTime()), 0, 1);
$timeBottomPrint = schedule(10, 0, timeBottomPrint);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment