Aggiunto metodo empty

git-svn-id: svn://10.65.10.50/trunk@4524 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
augusto 1997-06-04 14:38:22 +00:00
parent b511a986bf
commit c5419e2e34
2 changed files with 7 additions and 0 deletions

View File

@ -170,6 +170,11 @@ bool TDate::is_end_month()
return day() == last_day(month(),year());
}
bool TDate::empty()
{
return _val == 0;
}
int TDate::wday() const
{
// day of week (1=lunedi)

View File

@ -100,6 +100,8 @@ public:
bool is_end_month();
// @cmember Setta il giorno del mese all'ultimo possibile
void set_end_month();
// @cmember Controlla se la data è nulla
bool empty();
// @cmember Setta la il giorno
void set_day(int n);