If this is your first visit, be sure to
check out the FAQ. You will have to register
before you can post. To start viewing messages,
select the forum that you want to visit from the selection below.
Please do not use the CODE tag when pasting content that contains formatting (colored, bold, underline, italic, etc) Use the QUOTE tag instead.
The CODE tag displays all content as plain text, including the formatting tags, making it difficult to read.
I saw that it's a C programme, so I looked for main and found it in distro-info-util.c, and in its option processing:
Code:
case 'D':
...
i = sscanf(optarg, "%u-%u-%u", &date->year, &date->month, &date->day);
so it has to be year-month-day, all numbers. At another point I found it subtracts 1900 from the year, so the year must include the century. If you leave it out, the year is in the first century CE and says its data is "outdated".
A weird consequence of that sscanf format is that month and day don't need leading zeros, so 2022-1-1 is accepted.
Comment