R
rutherf
Hello
Why does this print 49Hs and not 17Hrs as *I* expected???
Ive tryed bus mode 2 and 3 in DateCalc and other things but it always
gives me elapsed hrs not elapsed bus hrs
any help appreciated!
==========================================
use Date::Manip;
Date_Init("TZ=GMT","WorkWeekBeg=1","WorkWeekEnd=5","WorkDay24Hr=0","WorkDayBeg=09:00","WorkDayEnd=17:00");
$start = 'Oct 03 2006 09:34:28';
$end = 'Oct 05 2006 10:34:28';
$date1=ParseDate($start);
$date2=ParseDate($end);
$delta=DateCalc($date1,$date2,,2);
$bus_hrs=Delta_Format($delta,2,,"%ht");
print $bus_hrs;
====================================================
Why does this print 49Hs and not 17Hrs as *I* expected???
Ive tryed bus mode 2 and 3 in DateCalc and other things but it always
gives me elapsed hrs not elapsed bus hrs
any help appreciated!
==========================================
use Date::Manip;
Date_Init("TZ=GMT","WorkWeekBeg=1","WorkWeekEnd=5","WorkDay24Hr=0","WorkDayBeg=09:00","WorkDayEnd=17:00");
$start = 'Oct 03 2006 09:34:28';
$end = 'Oct 05 2006 10:34:28';
$date1=ParseDate($start);
$date2=ParseDate($end);
$delta=DateCalc($date1,$date2,,2);
$bus_hrs=Delta_Format($delta,2,,"%ht");
print $bus_hrs;
====================================================