***********************
** FILE NAME : date.h
** SYSTEM NAME : AXE - Andromeda X-windows Encapsulation
-** VERSION NUMBER : $Revision: 1.1 $
+** VERSION NUMBER : $Revision: 1.2 $
**
** DESCRIPTION :
**
/*****************************
$Log: date.h,v $
- Revision 1.1 2002-07-25 08:01:26 arjen
+ Revision 1.2 2002-09-02 06:18:20 arjen
+ Fixed some date and time conversion functions
+
+ Revision 1.1 2002/07/25 08:01:26 arjen
First checkin, AXE release 0.2
*****************************/
-/* static const char *RCSID = "$Id: date.h,v 1.1 2002-07-25 08:01:26 arjen Exp $"; */
+/* static const char *RCSID = "$Id: date.h,v 1.2 2002-09-02 06:18:20 arjen Exp $"; */
#ifndef AXE_DATE_H
#define AXE_DATE_H
friend ostream& operator<<(ostream&, const date&);
friend istream& operator>>(istream&, date&);
- String format(const char *fmt = "%x");
+ String format(const char *fmt = "%F");
};
-date today(void);
+date today();
class hour
{
friend hour operator-(hour &, hour &);
friend ostream& operator<<(ostream &, const hour &);
+ friend istream& operator>>(istream &, hour &);
+
+ String format(const char *fmt = "%T");
};
+hour now();
+
class UTC
{
hour t;