1

I am building a GUI with matplotlib, and have two sliders which are used to set time values in unix/epoch time. However, this format isn't human-readable, and I would like it to be displayed in [%Y-%m-%d %H:%M] format.

Here's a screenshot of the sliders: Sliders with epoch time

I am using datetime.utcfromtimestamp(int(self.slider_start/1e9)).strftime('%Y-%m-%d %H:%M:%S') to convert the epoch value to the desired format. How can I now throw this value onto the GUI?

0 Answers0