Skip to content

Commit cd7d273

Browse files
committed
Add Time Stamp String Property to Image_Data Class
1 parent 5e19bdc commit cd7d273

File tree

1 file changed

+5
-0
lines changed
  • mantidimaging/gui/windows/live_viewer

1 file changed

+5
-0
lines changed

mantidimaging/gui/windows/live_viewer/model.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ def image_modified_time(self) -> float:
5555
"""Return the image modified time"""
5656
return self._stat.st_mtime
5757

58+
@property
59+
def image_modified_time_stamp(self) -> str:
60+
"""Return the image modified time as a string"""
61+
return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(self.image_modified_time))
62+
5863

5964
class SubDirectory:
6065

0 commit comments

Comments
 (0)