dateutils
                                
                                 dateutils copied to clipboard
                                
                                    dateutils copied to clipboard
                            
                            
                            
                        Timeformat problem on OSX
Hi,
the manpage clearly says:
       Time specs:
         %H  The hour of the day using a 24h clock, 2 digits (range 00 to 23)
However:
> datediff 07:00 08:00 --format "%H"
1
Where is my leading zero? Is this a bug or does this have something to do with OSX linked libraries?
I'm using
> datediff --version
datediff 0.4.4
on High Sierra using the Homebrew version of dateutils
Hi there, I think this is entirely my laziness and due to the fact that I treat man pages like second banana (I regard the info pages as primary source of documentation). Further down in the man page you'll find the format specs for time durations where it says:
%H  Duration in hours
To get the leading zero, you'd have to use %0H:
$ datediff 07:00 08:00 --format "%0H"
01
Sorry for the unclear documentation.