build.py: added missing `import datetime`
util.py: format_duration(): don't include zero values in output