Add strftime detection, add full time format
Improve strftime detection logic