pdfGetModDate

Get file modification date.
int pdfGetModDate(PDFHandle pdf, int *year, int *month, int *day, int *hour, int *minute, int *second)
This function retrieves the value of the ModDate info field, parsed as a date (in the encoding format defined by the PDF specification).

Returns 1 on success, or 0 if the ModDate field doesn't exist or couldn't be parsed as a date.

This function is equivalent to

pdfGetInfoDate(pdf, "ModDate", year, month, day, hour, minute, second);
C:
int year, month, day, hour, minute, second; if (pdfGetModDate(pdf, &year, &month, &day, &hour, &minute, &second)) { printf("mod date = %04d-%02d-%02d %02d:%02d:%02d\n", year, month, day, hour, minute, second); } else { printf("no mod date\n"); }
pdfGetInfoDate
pdfGetCreationDate