min2time.c
changeset 27 81a574d60c15
parent 26 d227047a3e88
child 77 49e0babccb23
equal deleted inserted replaced
26:d227047a3e88 27:81a574d60c15
    21     }
    21     }
    22 
    22 
    23     if ((minutes < 0) || !(minutes < INT_MAX))
    23     if ((minutes < 0) || !(minutes < INT_MAX))
    24         return EXIT_FAILURE;
    24         return EXIT_FAILURE;
    25 
    25 
    26     printf ("%.3d:%.2d:%.2d:%.2d (yy:dd:hh:mm)\n", minutes / 60 / 24 / 365, (minutes / (60 * 24) % 365),
    26     printf ("%.2d:%.2d:%.2d:%.2d (yy:dd:hh:mm)\n", minutes / 60 / 24 / 365, (minutes / (60 * 24) % 365),
    27             (minutes / 60) % 24, minutes % 60);
    27             (minutes / 60) % 24, minutes % 60);
    28 
    28 
    29     return EXIT_SUCCESS;
    29     return EXIT_SUCCESS;
    30 }
    30 }