]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix various issues in how %#T is handled:
authorpjd <pjd@FreeBSD.org>
Sun, 6 Mar 2011 17:43:32 +0000 (17:43 +0000)
committerpjd <pjd@FreeBSD.org>
Sun, 6 Mar 2011 17:43:32 +0000 (17:43 +0000)
commit3d9241706267e9b042c64d362f9c0f5ce1c4e8db
treea33d3c3f108a67f276bf91b2885f7b43d7a8fd4a
parent2868a01f090039809e0244134ca187edb2dcee80
Fix various issues in how %#T is handled:
- If precision is 0, don't print period followed by no digits.
- If precision is 0 stop printing units as soon as possible
  (eg. if we have three years and five days and precision is 0
   print only 3y5d).
- If precision is not 0, print all units (eg. 3y0d0h0m0s.00).

MFC after: 2 weeks
lib/libc/stdio/xprintf_time.c