Skip to content

Instantly share code, notes, and snippets.

@AdamDimech
Created March 14, 2017 00:28
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 AdamDimech/b2d8664aa296dc74dd81a1041a6c55c0 to your computer and use it in GitHub Desktop.
Save AdamDimech/b2d8664aa296dc74dd81a1041a6c55c0 to your computer and use it in GitHub Desktop.
ImageJ Date and Time Output
// ImageJ Macro Code
// Output timestamp in format EEE dd MMM yyyy, hh:mm:ss
MonthNames = newArray("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
DayNames = newArray("Sun", "Mon","Tue","Wed","Thu","Fri","Sat");
getDateAndTime(year, month, dayOfWeek, dayOfMonth, hour, minute, second, msec);
print (DayNames[dayOfWeek], dayOfMonth, MonthNames[month], year + "," + hour + ":" + minute + ":" + second);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment