MCPcopy Create free account
hub / github.com/git/git / nodate

Function nodate

date.c:646–654  ·  view source on GitHub ↗

* Have we filled in any part of the time/date yet? * We just do a binary 'and' to see if the sign bit * is set in all the values. */

Source from the content-addressed store, hash-verified

644 * is set in all the values.
645 */
646static inline int nodate(struct tm *tm)
647{
648 return (tm->tm_year &
649 tm->tm_mon &
650 tm->tm_mday &
651 tm->tm_hour &
652 tm->tm_min &
653 tm->tm_sec) < 0;
654}
655
656/*
657 * Have we seen an ISO-8601-alike date, i.e. 20220101T0,

Callers 1

match_digitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected