Previous commit left the common %s format extension unresolved. This implements the format in a platform independent way so it can be used on all platforms, including on Windows where strftime does not support %s.
Wdiscarded-qualifiers