Loading...
Searching...
No Matches
Date.h
Go to the documentation of this file.
1//---------------------------------------------------------------------------------------
2// Copyright (c) 2001-2025 by Apryse Software Inc. All Rights Reserved.
3// Consult legal.txt regarding legal and license information.
4//---------------------------------------------------------------------------------------
5#ifndef H_PDFDate
6#define H_PDFDate
7
8#include <SDF/Obj.h>
9#include <C/PDF/TRN_Date.h>
10
11namespace pdftron {
12 namespace PDF {
13
14
28class Date : public TRN_Date
29{
30public:
31
35 Date ();
36
43
54 Date (UInt16 year, char month, char day, char hour, char minute, char second);
55
59 Date (const Date& d);
60
64 Date& operator=(const Date& d);
65
74 bool IsValid() const;
75
81
87 void SetUT(char ut);
88
93 void SetUTHour(Int8 ut_hour);
94
99 void SetUTMinutes(Int8 ut_minutes);
100
108
118 bool Update(SDF::Obj d = NULL);
119
124
125#ifndef SWIG
129 char GetMonth();
130
134 char GetDay();
135
139 char GetHour();
140
144 char GetMinute();
145
149 char GetSecond();
150
155 char GetUT();
156
160 char GetUTHour();
161
165 char GetUTMin();
166#else // SWIG
167 UInt8 GetMonth();
168 UInt8 GetDay();
169 UInt8 GetHour();
172 UInt8 GetUT();
174 UInt8 GetUTMin();
175#endif // SWIG
176};
177
178
179#include <Impl/Date.inl>
180
181 }; // namespace PDF
182}; // namespace pdftron
183
184#endif // H_PDFDate
void Attach(SDF::Obj d)
Date(const Date &d)
void SetUT(char ut)
Date(SDF::Obj d)
bool Update(SDF::Obj d=NULL)
void SetUTHour(Int8 ut_hour)
bool IsValid() const
Date & operator=(const Date &d)
Date(UInt16 year, char month, char day, char hour, char minute, char second)
void SetUTMinutes(Int8 ut_minutes)
TRN_UInt8 UInt8
Definition BasicTypes.h:15
TRN_Int8 Int8
Definition BasicTypes.h:18
TRN_UInt16 UInt16
Definition BasicTypes.h:14