Lines Matching refs:delta
838 struct tm *delta;
840 delta = gmtime(dt);
841 if (delta->tm_yday == 0)
842 if (delta->tm_hour == 0)
843 if (delta->tm_min == 0)
846 (void) printf(" %2d", delta->tm_min);
848 if (delta->tm_hour >= 10)
849 (void) printf("%3d:", delta->tm_hour);
852 delta->tm_hour, delta->tm_min);
854 (void) printf("%3dd", delta->tm_yday);
865 struct tm *delta;
867 delta = gmtime(dt);
868 if (delta->tm_yday == 0 && delta->tm_hour == 0 && delta->tm_min == 0 &&
869 delta->tm_sec <= 10)
872 if (delta->tm_yday >= 10)
873 (void) printf("%d days", delta->tm_yday);
874 else if (delta->tm_yday > 0)
876 delta->tm_yday, delta->tm_yday == 1 ? "" : "s",
877 delta->tm_hour, delta->tm_hour == 1 ? "" : "s");
879 if (delta->tm_hour >= 10)
880 (void) printf("%d hours", delta->tm_hour);
881 else if (delta->tm_hour > 0)
883 delta->tm_hour, delta->tm_hour == 1 ? "" : "s",
884 delta->tm_min, delta->tm_min == 1 ? "" : "s");
886 if (delta->tm_min >= 10)
887 (void) printf("%2d minutes", delta->tm_min);
888 else if (delta->tm_min == 0)
889 (void) printf("%2d seconds", delta->tm_sec);
892 delta->tm_min,
893 delta->tm_min == 1 ? "" : "s",
894 delta->tm_sec,
895 delta->tm_sec == 1 ? "" : "s");