File: Datetime.3cc

package info (click to toggle)
libcommoncpp2 1.0.13-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,740 kB
  • ctags: 2,860
  • sloc: cpp: 18,857; sh: 8,451; ansic: 1,546; makefile: 299; xml: 5
file content (142 lines) | stat: -rw-r--r-- 3,328 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
.TH "Datetime" 3 "19 Jul 2003" "CommonC++" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Datetime \- The Datetime class uses a julian date representation of the current year, month, and day and a integer representation of the current time. Integer based time class. 
.SH SYNOPSIS
.br
.PP
\fC#include <numbers.h>\fP
.PP
Inherits \fBDate\fP, and \fBTime\fP.
.PP
.SS "Public Methods"

.in +1c
.ti -1c
.RI "\fBDatetime\fP (time_t tm)"
.br
.ti -1c
.RI "\fBDatetime\fP (tm *dt)"
.br
.ti -1c
.RI "\fBDatetime\fP (char *str, size_t \fBsize\fP=0)"
.br
.ti -1c
.RI "\fBDatetime\fP (int year, unsigned month, unsigned day, int hour, int minute, int second)"
.br
.ti -1c
.RI "\fBDatetime\fP ()"
.br
.ti -1c
.RI "char * \fBgetDatetime\fP (char *buffer) const"
.br
.ti -1c
.RI "time_t \fBgetDatetime\fP (void) const"
.br
.ti -1c
.RI "bool \fBisValid\fP (void) const"
.br
.ti -1c
.RI "Datetime & \fBoperator=\fP (Datetime datetime)"
.br
.ti -1c
.RI "Datetime & \fBoperator+=\fP (Datetime &datetime)"
.br
.ti -1c
.RI "Datetime & \fBoperator-=\fP (Datetime &datetime)"
.br
.ti -1c
.RI "Datetime & \fBoperator+=\fP (\fBTime\fP &time)"
.br
.ti -1c
.RI "Datetime & \fBoperator-=\fP (\fBTime\fP &time)"
.br
.ti -1c
.RI "int \fBoperator==\fP (Datetime &)"
.br
.ti -1c
.RI "int \fBoperator!=\fP (Datetime &)"
.br
.ti -1c
.RI "int \fBoperator<\fP (Datetime &)"
.br
.ti -1c
.RI "int \fBoperator<=\fP (Datetime &)"
.br
.ti -1c
.RI "int \fBoperator>\fP (Datetime &)"
.br
.ti -1c
.RI "int \fBoperator>=\fP (Datetime &)"
.br
.ti -1c
.RI "bool \fBoperator!\fP ()"
.br
.ti -1c
.RI "std::string \fBstrftime\fP (const char *format) const"
.br
.in -1c
.SH "DETAILED DESCRIPTION"
.PP 
The Datetime class uses a julian date representation of the current year, month, and day and a integer representation of the current time. Integer based time class.
.PP
This is then manipulated in several forms and may be exported as needed.
.PP
\fBAuthor: \fP
.in +1c
Marcelo Dalmas <mad@brasmap.com.br> 
.PP
.SH "CONSTRUCTOR & DESTRUCTOR DOCUMENTATION"
.PP 
.SS "Datetime::Datetime (time_t tm)"
.PP
.SS "Datetime::Datetime (tm * dt)"
.PP
.SS "Datetime::Datetime (char * str, size_t size = 0)"
.PP
.SS "Datetime::Datetime (int year, unsigned month, unsigned day, int hour, int minute, int second)"
.PP
.SS "Datetime::Datetime ()"
.PP
.SH "MEMBER FUNCTION DOCUMENTATION"
.PP 
.SS "time_t Datetime::getDatetime (void) const"
.PP
.SS "char* Datetime::getDatetime (char * buffer) const"
.PP
.SS "bool Datetime::isValid (void) const"
.PP
Reimplemented from \fBDate\fP.
.SS "bool Datetime::operator! ()"
.PP
Reimplemented from \fBTime\fP.
.SS "int Datetime::operator!= (Datetime &)"
.PP
.SS "Datetime& Datetime::operator+= (\fBTime\fP & time)"
.PP
.SS "Datetime& Datetime::operator+= (Datetime & datetime)"
.PP
.SS "Datetime& Datetime::operator-= (\fBTime\fP & time)"
.PP
.SS "Datetime& Datetime::operator-= (Datetime & datetime)"
.PP
.SS "int Datetime::operator< (Datetime &)"
.PP
.SS "int Datetime::operator<= (Datetime &)"
.PP
.SS "Datetime& Datetime::operator= (Datetime datetime)"
.PP
.SS "int Datetime::operator== (Datetime &)"
.PP
.SS "int Datetime::operator> (Datetime &)"
.PP
.SS "int Datetime::operator>= (Datetime &)"
.PP
.SS "std::string Datetime::strftime (const char * format) const"
.PP


.SH "AUTHOR"
.PP 
Generated automatically by Doxygen for CommonC++ from the source code.