in reply to Re^4: Is this logic correct? Maybe can be rewritten better?
in thread Is this logic correct? Maybe can be rewritten better?

See your OS' documentation, as it'll have all the escape codes (man 3 strftime or some variation thereon should find it). In this particular case you probably want strftime( "%d %b, %H:%M", localtime ).