Feb. 26, 2002
3:29 a.m.
[Guido]
I never use this in combination with named variables, but I often write timing programs that format times using "%6.3f" to get millisecond precision.
Note that you also use %(name)s with width, precision and justification modifiers. For example, this line is yours: s = "%(name)-20.20s %(sts)-10s %(uptime)6s %(idletime)6s" % locals()