* 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. */
| 644 | * is set in all the values. |
| 645 | */ |
| 646 | static 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, |