Implements support for 24-hour time if the relevant option is turned on.