1 /**************************************************************************
2 ** (c) Copyright 1999, Andromeda Technology & Automation
3 ***************************************************************************
4 ** MODULE INFORMATION *
5 ***********************
6 ** FILE NAME : hour.cpp
7 ** SYSTEM NAME : AXE - Andromeda X-windows Encapsulation
8 ** VERSION NUMBER : $Revision: 1.1 $
15 ***************************************************************************
16 ** ADMINISTRATIVE INFORMATION *
17 ********************************
18 ** ORIGINAL AUTHOR : Arjen Baart - arjen@andromeda.nl
19 ** CREATION DATE : Feb 06, 1998
20 ** LAST UPDATE : Oct 16, 1999
21 **************************************************************************/
23 /*****************************
25 Revision 1.1 2002-07-25 08:01:27 arjen
26 First checkin, AXE release 0.2
28 *****************************/
30 static const char *RCSID = "$Id: hour.cpp,v 1.1 2002-07-25 08:01:27 arjen Exp $";
33 #include "parsedate.h"
37 struct parseddate *pd;
45 hour operator+(hour &t1, hour &t2)
49 t.seconds += t2.seconds;
55 t.minutes += t2.minutes;
66 hour hour::operator+=(hour t)
85 hour operator-(hour &t1, hour &t2)
89 t.seconds -= t2.seconds;
96 t.minutes -= t2.minutes;
108 ostream& operator<<(ostream &s, const hour &t)
110 s << t.hours << ":" << t.minutes << ":" << t.seconds;