5539b9d4a6b9599155162bb3ad79c2de3456c13a
[libacl.git] / doc / hour.html
1 <html>
2 <head>
3 <title>hour - ANDROMEDA CLASS LIBRARY</title>
4 </head>
5 <body bgcolor=white>
6
7 <h2> NAME</h2>
8 hour - Time class
9 <h2> SYNOPSIS</h2>
10 <pre>
11 #include <date.h>
12
13 hour t;
14 </pre>
15 <h2> DESCRIPTION</h2>
16
17 The <em>hour</em> class encapsulates a time in hours, minutes and seconds.
18
19 <h3>Construction</h3>
20
21 <h5>hour()</h5>
22 <h5>hour(int hour, short minute, short second)</h5>
23 <h5>hour(string)</h5>
24
25 Format is HH:MM:SS
26
27 <h5>hour(long)</h5>
28
29 A number of seconds.
30
31 <h3>Assignment</h3>
32
33 <h5>operator=(hour &)</h5>
34 <h5>operator=(string &)</h5>
35 <h5>operator=(long)</h5>
36
37 <h3>Conversion</h3>
38
39 <h5>long()</h5>
40
41 Converts to a number of seconds.
42
43 <h5>string()</h5>
44
45 <h3>Relational operations</h3>
46
47 <h5>operator==(hour &)</h5>
48 <h5>operator!=(hour &)</h5>
49 <h5>operator&lt;(hour &)</h5>
50 <h5>operator&lt;=(hour &)</h5>
51 <h5>operator&gt;(hour &)</h5>
52 <h5>operator&gt;=(hour &)</h5>
53
54 <h3>Attributes</h3>
55
56 <h5>int hour()</h5>
57 <h5>short minute()</h5>
58 <h5>short second()</h5>
59
60 <h3>Arithmetic</h3>
61
62 <h5>hour operator+(hour &t1, hour &t2)</h5>
63 <h5>hour operator-(hour &t1, hour &t2)</h5>
64 <h5>hour &operator+=(hour &t)</h5>
65 <h5>hour &operator-=(hour &t)</h5>
66 <h5>hour &operator++()</h5>
67 <h5>hour &operator--()</h5>
68
69 <h3>Stream I/O</h3>
70
71 <h5>ostream &operator<<(ostream &str, hour &t)</h5>
72 <h5>istream &operator>>(istream &str, hour &t)</h5>
73
74 <h2> SEE ALSO</h2>
75
76 <a href="date.html">date</a>
77 <a href="UTC.html">UTC</a>
78
79 <h2> DIAGNOSTICS</h2>
80
81 </body>
82 </html>