Hi Sven,

I think you have to do it on another way.
Better to let perl find your date.

#!/usr/bin/perl

use Time::localtime

$tijd = localtime;
$year = $tijd->year+1900
print $tijd->sec;
print "Wir leben heute am jahr: $year";

In this order we have :

sec     Seconds
min     Minutes
hours   hours
mday    day of month
month   Month
year    Year since 1900 ( So $year + 1900)
wday    Day of week
yday    Day of year
isdst   True if Daylight savings is in effect


No you can print it in any order you want. If you got your time remote and realy 
want to split the date you could do it like :

$tijd = "Wed May 22 11:06:34 METDST 2002"

($dow, $month, $day, $tm, $tz, $year) = split(/ /, $tijd);
($hour, $min, $sec) = split(/:/, $tm);

Hope you have enough info. Good Luck !!


Regs David

> 
> Hi !
> 
> How can I convert a date value (I get via /bin/date) into a text value?
> 
> Thanks for your help.
> 
> Sven
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to