Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

datepattern.C File Reference

#include <stdlib.h>
#include <ctype.h>
#include "datepattern.h"

Go to the source code of this file.

Functions

ostream& operator<< (ostream &os, const DatePattern &date)


Function Documentation

ostream & operator<< ( ostream & os,
const DatePattern & date )
 

Definition at line 65 of file datepattern.C.

00065                                                 {
00066 unsigned int sz(date.size());
00067 // Print in format year-month-day hours:00.
00068 if (sz>0) {
00069   os << date[0] ;
00070   if (sz>1) {
00071     os << "-" << date[1];
00072     if (sz>2) {
00073       os << "-" << date[2];
00074       if (sz>3)
00075         os << " " << date[3] << ":00";
00076       }
00077     }
00078   }
00079 return os;
00080 }


httpstats-stage02a [ 7 April, 2001]