tAdd time format note, allow HH:MM format - filmtools - various tools for photographic film development and darkroom printing
 (HTM) git clone git://src.adamsgaard.dk/filmtools
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) commit d71e61199762df0226f33140f7259a2e6f34a46f
 (DIR) parent f9489a52dd0a28d71e88aed7f51d8d14b2911001
 (HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
       Date:   Sun, 23 Feb 2020 09:42:51 +0100
       
       Add time format note, allow HH:MM format
       
       Diffstat:
         M timeadj.1                           |       2 +-
         M timeadj.c                           |       4 ++--
       
       2 files changed, 3 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/timeadj.1 b/timeadj.1
       t@@ -10,6 +10,6 @@
        .Ar TIME
        .Sh DESCRIPTION
        .Nm
       -converts TIME by multiplying with FACTOR.
       +converts TIME in format MM:SS or HH:MM by multiplying with FACTOR.
        .Sh AUTHORS
        .An Anders Damsgaard Aq Mt anders@adamsgaard.dk
 (DIR) diff --git a/timeadj.c b/timeadj.c
       t@@ -9,7 +9,7 @@ void
        usage()
        {
                printf("usage: %s FACTOR TIME\n", PROGNAME);
       -        puts("where TIME is in format MM:SS");
       +        puts("where TIME is in format HH:MM or MM:SS");
        }
        
        int
       t@@ -31,7 +31,7 @@ main(int argc, char** argv)
                if (sscanf(argv[1], "%lg", &factor) != 1)
                        err(2, "could not parse FACTOR");
                if (sscanf(argv[2], "%d:%d", &min, &sec) != 2)
       -                err(2, "could not parse TIME in MM:SS format");
       +                err(2, "could not parse TIME in HH:MM or MM:SS format");
        
                sec_equiv = min*60 + sec;