Hello all,
I am using add_delta_workdays() from Date::Calendar to determine whether
yesterday was or was not a business day. In order to do this, I am
trying to compare it with a date output from Add_Delta_Days from
Date::Calc.
What I'd *like* to do is stringify the output from both of these
functions, as they both return objects. Is this possible? If I do
something like:
($year,$month,$day) = Today();
$yesterday = Add_Delta_Days($year,$month,$day, -1);
$cal = Date::Calendar->new( $Profiles->{'US'} );
($prev_business_day,$rest) = $cal->add_delta_workdays($year,$month,$day,
-1);
I can print out the contents of $yesterday and $prev_business_day and
seemingly get stringified output, but if I try to do something like:
if ($yesterday ne $prev_business_day) {
....
}
I get "Date::Calc::_not_equal_date_time_(): can't compare a date and a
delta vector at test.pl"
So my question is either 1) Can I stringify an object or 2) What is
the best way to perform the comparison I am trying to perform?
Thanks much in advance.
-I
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]