Is it possible you used the format string ā+%02dā vs ā%+02dā? The first will give you the +00 you expected while the second is +0, as discussed.
On Aug 29, 2018, at 6:53 AM, Eric Raymond <e...@thyrsus.com<mailto:e...@thyrsus.com>> wrote: On Tuesday, August 28, 2018 at 4:49:02 PM UTC-4, peterGo wrote: "Width is specified by an optional decimal number immediately preceding the verb. If absent, the width is whatever is necessary to represent the value. " https://golang.org/pkg/fmt/ Width is two. Thanks for the clarification. May I recommend appending to that sentence "(including the leading sign, if any, even if the sign is forced by a + modifier)"? I still think i saw apparently inconsistent behavior. I'm still writing unit tests involving date conversions, so I'm going to try to reproduce this and turn in an actionable report. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com<mailto:golang-nuts+unsubscr...@googlegroups.com>. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.