/*  This file is part of lsnet.
    Copyright (C) 2009-2010  Sterling Pickens
    Lsnet 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 3 of the License, or
    (at your option) any later version.

    Lsnet 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 lsnet.  If not, see <http://www.gnu.org/licenses/>.
*/


/*
        USAGE:
*/


#ifndef __DATES_H__
#define __DATES_H__ 1

#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
//#include <string.h>
//#include <unistd.h>
//#include <time.h>
//#include  <sys/types.h>

struct Date{
	int day;
	int month;
	int year;
};

struct Transactions {
    double balance;
	double change;
    struct Date date;
};

unsigned int Total_Days(struct Date *date_start, struct Date *date_end);
unsigned int Days_In_Month(struct Date *date_cur);
//static unsigned int Month_Table(int monthnumber);
void Increment_Date(struct Date *date, int offset);
void Decrement_Date(struct Date *date, int offset);

#endif
