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.
If you have copied text output that contains formatting (colors, highlighting, etc.), please do not enclose it in QUOTE or CODE tags. Just right-click your mouse and choose "Paste Without Formatting" or similar (Paste as plain text).
But the Help doesn't prescribe how you provide DATE. There are no examples.
Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
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.
Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
Comment