New Forum | Previous | Next | (P-PDF) Developers
Topic: Dates and Date Formats
Conf: (P-PDF) Developers, Msg: 90391
Date: 6/20/2003 02:02 AM
I'm getting confused by different parts of the SDK! (Hah, so what's
PDDocGetInfo essentially returns a char value, even if the Info item
is one of the dates.
PDAnnotGetDate, on the other hand, returns an ASTimeRecP value.
However, according to the PDF reference manual, they are both
strings of the form "D:2003....."
Before I go much further, have I at least got that much right?!
To get a string representing date and time, I use
AVSysAllocTimeStringFromTimeRec, which requires an ASTimeRecP
So, if I want to use AVSysAllocTimeStringFromTimeRec on an Info
dictionary date, I have to first cast the char to ASTimeRecP?
The API Ref. doesn't say this, but I presume the resultant string will
be governed by the system preferences for date format?
(.. and, yes, I did note ASmalloc is involved, and I need to use
Many thanks for your patience!