I have file names encoded with datetimes in the format:yyyy-mm-dd_HHhMMhSSs.
Real example: 2013-08-05_15h44m28s (in the time portion, it can have only the hour part)
I have to convert it back to an actual datetime. The date part is so easy that it's already solved, but for the time portion I didn't found in my delphi install a way to do that out-of-the-box.
So I got an SScanf
implementation to solve that, but the question remains: did I overlook something or it's indeed the way to do that without having to write code myself?
Note: although I tagged my delphi version, functions that exist in more recent versions are interesting too.
BTW, someone knows if that formatting of the time portion have an name?