|
#include <Date.h>
Public Member Functions | |
| Date () | |
| Date default constructor. | |
| Date (SDF::Obj d) | |
| Create a Date and initialize it using given Cos/SDF string date object. | |
| Date (UShort year, char month, char day, char hour, char minute, char second) | |
| Create a Date and initialize it using specified parameters. | |
| Date (const Date &d) | |
| Copy constructor. | |
| Date & | operator= (const Date &d) |
| Assignment operator. | |
| bool | IsValid () const |
| Indicates whether the Date is valid (non-null). | |
| void | Attach (SDF::Obj d) |
| Attach the Cos/SDF object to the Date. | |
| bool | Update (SDF::Obj d=NULL) |
| Saves changes made to the Date object in the attached (or specified) SDF/Cos string. | |
| UShort | GetYear () |
| |
| char | GetMonth () |
| |
| char | GetDay () |
| |
| char | GetHour () |
| |
| char | GetMinute () |
| |
| char | GetSecond () |
| |
| char | GetUT () |
| |
| char | GetUTHour () |
| |
| char | GetUTMin () |
| |
PDF defines a standard date format, which closely follows international standard ASN.1 (Abstract Syntax Notation One), A date is a string of the form (D:YYYYMMDDHHmmSSOHH'mm'); See PDF Reference Manual for details.
Date can be associated with a SDF/Cos date string using Date(Obj*) constructor or later using Date::Attach(Obj*) or Date::Update(Obj*) methods.
Date keeps a local date/time cache so it is necessary to call Date::Update() method if the changes to the Date should be saved in the attached Cos/SDF string.
| pdftron::PDF::Date::Date | ( | ) |
Date default constructor.
| pdftron::PDF::Date::Date | ( | SDF::Obj | d | ) |
| pdftron::PDF::Date::Date | ( | UShort | year, | |
| char | month, | |||
| char | day, | |||
| char | hour, | |||
| char | minute, | |||
| char | second | |||
| ) |
| pdftron::PDF::Date::Date | ( | const Date & | d | ) |
Copy constructor.
| bool pdftron::PDF::Date::IsValid | ( | ) | const |
| void pdftron::PDF::Date::Attach | ( | SDF::Obj | d | ) |
| bool pdftron::PDF::Date::Update | ( | SDF::Obj | d = NULL |
) |
Saves changes made to the Date object in the attached (or specified) SDF/Cos string.
| d | - an optional parameter indicating a SDF string that should be updated and attached to this Date. If parameter d is NULL or is omitted, update is performed on previously attached Cos/SDF date. |
| UShort pdftron::PDF::Date::GetYear | ( | ) |
| char pdftron::PDF::Date::GetMonth | ( | ) |
| char pdftron::PDF::Date::GetDay | ( | ) |
| char pdftron::PDF::Date::GetHour | ( | ) |
| char pdftron::PDF::Date::GetMinute | ( | ) |
| char pdftron::PDF::Date::GetSecond | ( | ) |
| char pdftron::PDF::Date::GetUT | ( | ) |
| char pdftron::PDF::Date::GetUTHour | ( | ) |
| char pdftron::PDF::Date::GetUTMin | ( | ) |