/* * Copyright (c) 1995 Gunther Schadow. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef ORADATE_H_ #define ORADATE_H_ #include #include struct ora_date { u_int century : 8; u_int year : 8; u_int month : 8; u_int day : 8; u_int hour : 8; u_int minute : 8; u_int second : 8; ora_date(); ora_date(struct tm &tms); operator struct tm () const; void set_year(int); void set_month(int); void set_day(int); void set_hour(int); void set_minute(int); void set_second(int); int get_year() const; int get_month() const; int get_day() const; int get_hour() const; int get_minute() const; int get_second() const; }; #ifndef OUTLINE #include "OraDate.icc" #endif #endif /* ! ORADATE_H_ */