On 03/19/2018 09:29 AM, Valery Ushakov wrote: > special casing 0 is still a good idea as it saves a call to > tzalloc(). Fair enough; I installed the first attached patch. > this patch also needs to #include > where __NetBSD_Version__ is defined. Thanks, I installed the second attached patch to do that. > tzbuf_format can > probably drop that artisanal &"-"[...] and its corresponding %s, and > just pass -hour instead. That would mishandle time zones like -00:30:00 (i.e., 30 minutes behind UTC). That is, the sign is a property of the minutes and the seconds too, not just the hours.