ImageJ Date and Time Output
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
// 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