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
/*
Copyright 1990-2008 Light Infocon Tecnologia S/A
Este arquivo é parte do programa LightBase - Banco de Dados Textual Documental
O LightBase é um software livre; você pode redistribui-lo e/ou modifica-lo dentro
dos termos da Licença Pública Geral GNU como publicada pela Fundação do Software
Livre (FSF); na versão 2 da Licença.
Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou APLICAÇÃO
EM PARTICULAR. Veja a Licença Pública Geral GNU para maiores detalhes.
Você deve ter recebido uma cópia da Licença Pública Geral GNU versao 2, sob o
título "LICENCA.txt", junto com este programa, se não, escreva para a Fundação do
Software Livre(FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* class ALOpenInputFile
*
* DESCRIPTION
*
* class ALTimeDate is used strictly to keep track of the time/date
* stamp of an ALStorage object. The only place this class appears is
* as the mTimeDate member of ALStorage. It has a number of conversion
* utilities for loading and exporting its values in various formats.
* Since most of the ways we have to set time stamps for objects
* are not ANSI standard, we end up with quite a few conversion utilities.
*
* DATA MEMBERS
*
* miYear : The year just like you would expect, e.g 1994. A value of
* 0 in this field indicates an invalid time.
*
* miMonth : The month, 1-12.
*
* miDate : The date, 1-31.
*
* miHour : In 2400 format, 0 - 23.
*
* miMinute : 0 - 59
*
* miSecond : 0 -59,
*
* MEMBER FUNCTIONS
*
* ALTimeDate() : The constructor, sets all members to 0.
* ~ALTimeDate() : The destructor, has no work to do.
* operator new() : The memory allocation operator, only used
* when the library is inside a DLL.
* ToJulian() : Convert the internal m/d/y members to
* a julian day number.
* FromJulian() : Convert a julian day number to internal
* data members m/d/y.
* GetUnixTime() : Convert all members to a long in unix format,
* total seconds since 1/1/1970.
* GetDosTime() : Convert h:m:s data members to the unsigned int
* used in certain DOS commands.
* GetDosDate() : Convert m/d/y data members to the unsigned int
* used in certain DOS commands.
* SetTimeDate(long) : Set internal data members from a UNIX long.
* SetTimeDate(struct tm*) : Set internal data members from a DOS
* struct tm *.
* GetTimeDate() : Convert internal data members to a DOS struct tm *.
* Valid() : Indicate if a valid time has been set.
*
* REVISION HISTORY
*
* May 26, 1994 1.0A : First release
*
*/
class AL_CLASS_TYPE ALTimeDate ;