#include <PdfDate.h>
Public Member Functions | |
PdfDate () | |
PdfDate (const time_t &t) | |
virtual | ~PdfDate () |
bool | IsValid () const |
const time_t & | GetTime () const |
void | ToString (PdfString &rsString) const |
PdfDate objects are immutable.
From the PDF reference:
PDF defines a standard date format, which closely follows that of the international standard ASN.1 (Abstract Syntax Notation One), defined in ISO/IEC 8824 (see the Bibliography). A date is a string of the form (D:YYYYMMDDHHmmSSOHH'mm')
PoDoFo::PdfDate::PdfDate | ( | ) |
Create a PdfDate object with the current date and time.
PoDoFo::PdfDate::PdfDate | ( | const time_t & | t | ) |
PoDoFo::PdfDate::~PdfDate | ( | ) | [virtual] |
Delete the PdfDate object
const time_t & PoDoFo::PdfDate::GetTime | ( | ) | const [inline] |
bool PoDoFo::PdfDate::IsValid | ( | ) | const [inline] |
You can use this function to check wether the date you passed to the constructor could be converted to a valid pdf date string or a valid time_t.
void PoDoFo::PdfDate::ToString | ( | PdfString & | rsString | ) | const [inline] |