Allow more flexible time formating + cleanup.

* allow for timestrings that are incomplete (eg %f is just 1 char)
* correct globify accordingly
* correct incorrect behaviour with variable length time formats
(eg %A would give a fixed length depending on the current day)

Signed-off-by: Martin Raspaud <martin.raspaud@smhi.se>