** MODULE INFORMATION *
***********************
** FILE NAME : utc.cpp
-** SYSTEM NAME : AXE - Andromeda X-windows Encapsulation
-** VERSION NUMBER : $Revision: 1.1 $
+** SYSTEM NAME : ACL - Andromeda Class Library
+** VERSION NUMBER : 0.3.4
**
** DESCRIPTION :
**
********************************
** ORIGINAL AUTHOR : Arjen Baart - arjen@andromeda.nl
** CREATION DATE : Sep 16, 2002
-** LAST UPDATE : Sep 16, 2002
+** LAST UPDATE : Aug 08, 2020
**************************************************************************/
-/*****************************
- $Log: utc.cpp,v $
- Revision 1.1 2002-09-28 06:58:45 arjen
- Bugfix: conversion of an empty string to a date or hour object
- now makes the values of such an object 0 (null) instead of giving
- a segmentation fault.
- The class UTC combines the date and hour classes. The most basic
- functions of the UTC class are now implemented.
- These include constructors and conversion to and from String objects.
- New functions: date::proper(), hour::proper() and UTC::proper().
- Return true if the object holds a proper clock time and/or calendar
- date; false if at least one value is out of range.
-
-
-*****************************/
#include <time.h>
return UTC(d, t);
}
-UTC operator+(UTC &t1, UTC &t2)
+UTC operator+(UTC t1, UTC t2)
{
UTC t = t1;
return *this;
}
-long operator-(UTC &u1, UTC &u2)
+long operator-(UTC u1, UTC u2)
{
long days;
long seconds;