julian = 0;
}
-wxDate::wxDate (const long j) : julian(j)
+wxDate::wxDate (long j) : julian(j)
{
DisplayFormat=wxMDY;
DisplayOptions='\0';
julian_to_mdy ();
}
-wxDate::wxDate (const int m, const int d, const int y) : month(m), day(d), year(y)
+wxDate::wxDate (int m, int d, int y) : month(m), day(d), year(y)
{
DisplayFormat=wxMDY;
DisplayOptions='\0';
// Date Arithmetic
//////////////////////////////////////////////////////////////
-wxDate wxDate::operator + (const long i)
+wxDate wxDate::operator + (long i)
{
wxDate dp(julian + i);
return dp;
}
-wxDate wxDate::operator + (const int i)
+wxDate wxDate::operator + (int i)
{
wxDate dp(julian + (long)i);
return dp;
}
-wxDate wxDate::operator - (const long i)
+wxDate wxDate::operator - (long i)
{
wxDate dp(julian - i);
return dp;
}
-wxDate wxDate::operator - (const int i)
+wxDate wxDate::operator - (int i)
{
wxDate dp(julian - (long)i);
return dp;
return ( julian - dt.julian );
}
-wxDate &wxDate::operator += (const long i)
+wxDate &wxDate::operator += (long i)
{
julian += i;
julian_to_mdy();
return *this;
}
-wxDate &wxDate::operator -= (const long i)
+wxDate &wxDate::operator -= (long i)
{
julian -= i;
julian_to_mdy();
// Format routine
////////////////////////////////////////////////////////////////
-wxString wxDate::FormatDate (const int type) const
+wxString wxDate::FormatDate (int type) const
{
int actualType = type;
if (actualType == -1)
return wxString("");
}
-void wxDate::SetFormat( const int format )
+void wxDate::SetFormat( int format )
{
DisplayFormat = format;
}
-int wxDate::SetOption( const int option, const bool action )
+int wxDate::SetOption( int option, bool action )
{
switch ( option )
{
wxDate& wxDate::Set()
{
-//#ifdef __WINDOWS__
+//#ifdef __WXMSW__
#if 0
struct _dosdate_t sDate;
_dos_getdate(&sDate);
}
// This function is from NIHCL
-wxDate wxDate::Previous(const int dayOfWeek) const
+wxDate wxDate::Previous(int dayOfWeek) const
{
int this_day_Of_Week, desired_day_Of_Week;
long j;