delta time/date

2002-03-06 Thread Dittrich G . Michael
I try to find a quick and uncomplicated way to calculate the difference between one and another date/time: @date1 = ($year1, $month1, $day1, $hour1, $minute1); @date2 = ($year2, $month2, $day2, $hour2, $minute2); @deltaDateTime = "difference"(@date1, @date2); print "@deltaDateTime\n"; 0 0 0 12

AW: RE: is it a bug? (less-equal compare)

2002-02-14 Thread Dittrich G . Michael
ot;89" le "99" is true because 8 is smaller than 9 "98" le "99" is also true... "089" le "100" is true because 0 is smaller than 1 Try it.. but le and ge are for string comparisons... remember it goes down the string one charater at a time and

is it a bug? (less-equal compare)

2002-02-14 Thread Dittrich G . Michael
I do: $lowerlimit = "89" le "100"; response "" I do: $lowerlimit = "89" le "99"; response "1" please help me! I dont get it! is this a bug? or am I nuts? perl -ver "This is perl, version 5.005_03 built for i386-freebsd" -- berlin.de - meine stadt im netz. Jetzt eigene eMail-adresse @berlin.de s

clearing string (newbie) - resuming

2002-02-12 Thread Dittrich G . Michael
Hi all! i had a lot of feetback on my last post with really good stuff (I used for other purposes - please don't mind :), but there is still the one question: clear the string! - how? the most solutions worked only for one digit in the end or tryed to filter the first pattern after the [:spac