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
11
namespace
pdftron
{
12
namespace
PDF
{
13
14
28
class
Date
:
public
TRN_Date
29
{
30
public
:
31
35
Date
();
36
42
Date
(
SDF::Obj
d);
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
80
void
SetCurrentTime
();
81
87
void
SetUT
(
char
ut);
88
93
void
SetUTHour
(
Int8
ut_hour);
94
99
void
SetUTMinutes
(
Int8
ut_minutes);
100
107
void
Attach
(
SDF::Obj
d);
108
118
bool
Update
(
SDF::Obj
d = NULL);
119
123
UInt16
GetYear
();
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
();
170
UInt8
GetMinute
();
171
UInt8
GetSecond
();
172
UInt8
GetUT
();
173
UInt8
GetUTHour
();
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
Obj.h
pdftron::PDF::Date::GetMinute
char GetMinute()
pdftron::PDF::Date::GetHour
char GetHour()
pdftron::PDF::Date::GetUTMin
char GetUTMin()
pdftron::PDF::Date::Attach
void Attach(SDF::Obj d)
pdftron::PDF::Date::SetCurrentTime
void SetCurrentTime()
pdftron::PDF::Date::GetMonth
char GetMonth()
pdftron::PDF::Date::Date
Date(const Date &d)
pdftron::PDF::Date::SetUT
void SetUT(char ut)
pdftron::PDF::Date::Date
Date(SDF::Obj d)
pdftron::PDF::Date::GetYear
UInt16 GetYear()
pdftron::PDF::Date::GetDay
char GetDay()
pdftron::PDF::Date::Update
bool Update(SDF::Obj d=NULL)
pdftron::PDF::Date::GetUTHour
char GetUTHour()
pdftron::PDF::Date::SetUTHour
void SetUTHour(Int8 ut_hour)
pdftron::PDF::Date::IsValid
bool IsValid() const
pdftron::PDF::Date::GetSecond
char GetSecond()
pdftron::PDF::Date::operator=
Date & operator=(const Date &d)
pdftron::PDF::Date::Date
Date()
pdftron::PDF::Date::Date
Date(UInt16 year, char month, char day, char hour, char minute, char second)
pdftron::PDF::Date::GetUT
char GetUT()
pdftron::PDF::Date::SetUTMinutes
void SetUTMinutes(Int8 ut_minutes)
pdftron::SDF::Obj
Definition
Obj.h:41
pdftron::PDF
Definition
Action.h:15
pdftron
Definition
BasicTypes.h:10
pdftron::UInt8
TRN_UInt8 UInt8
Definition
BasicTypes.h:15
pdftron::Int8
TRN_Int8 Int8
Definition
BasicTypes.h:18
pdftron::UInt16
TRN_UInt16 UInt16
Definition
BasicTypes.h:14