This script introduces GUIs and some of the methods available to us via the Tkinter module by converting timestamps. This script can be extended in many ways. We recommend the following challenges for those wishing to gain a better understanding of GUI development in Python.
As mentioned in the chapter, we only specify the conversion of three formats that are commonly seen in forensics and use several different methods to provide conversion. Try to add support for the FAT Directory Timestamp entry into the script, providing conversion to, and from, the raw format.
In addition, replace the output labels with entry fields so the user can copy and paste the results. A hint for this challenge is to look at the set()
and readonly
properties of the Entry
widget. The last challenge we present is to allow the user to specify a time zone, either from the command-line or GUI interface. The pytz
library may be of great use for this task.