All pastes #249829 Raw Edit

Date.h

public text v1 · immutable
#249829 ·published 2006-11-16 05:53 UTC
rendered paste body
#ifndef _DATE_H__
#define _DATE_H__

#include <string>
#include <sstream>

class Date {
  private:
    bool _time;
    std::istringstream _dateStream;
    std::istringstream _timeStream;
    int _intDate;
    int _intTime;
  public:
    int year;
    int month;
    int day;
    int hour;
    int minute;
    int second;

    bool operator < (const Date&) const;
    bool operator == (const Date&) const;
    Date(int y, int m, int d);
    Date(int y, int m, int d, int h, int min, int s);
    Date(std::string);
};

#endif