tango-controls / fandango

Functional tools for PyTango / Tango Control System http://www.tango-controls.org/resources/howto/how-fandango/
7 stars 9 forks source link

Support ISO-8601 on str2time / time2str methods #12

Closed sergirubio closed 5 years ago

sergirubio commented 5 years ago

Adapt time conversion methods to follow the ISO 8601 standard:

"2007-03-01T13:00:00Z/P1Y2M10DT2H30M" https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations

Check compatibility with MySQL, and if it is broken prepare a switch mechanism to use current or new format depending on the application

sergirubio commented 5 years ago

done; use DEFAULT_TIME_FORMAT / set_default_time_format to adapt application-wide the time conversion settings