day of the week

day of the week

am 27.01.2007 23:08:43 von Andy

Could anyone kindly help me figure out how to add the day of the week to
David Spelts' Traffic Log "Hits By Day"?

I tried the following and could not implement any properly. I am a perl
newbie and would appreciate any help. I imagine this is simple for a perl
guru:

#$dayofweek = Date_DayOfWeek($month,$day,$year);
#my $date = ParseDateString("15 mar 1999");
$date = substr($key,0,6);
print UnixDate($date, "%a");
#$dayofweek = UnixDate($date, "%A");

#my $dt = DateTime->new(year => $year, month => $month, day => $day);
#my $dow = $dt->day_of_week();

#use Date::Calc; # you need this to calculate your date
#my $a = Date::Calc::Date_to_Text(2005, 12, 15);

I am using a Linux server with perl ver 5.8.7

all files required to run the script can be found here:
http://www.spelts.com/trafficlog/

Re: day of the week

am 29.01.2007 19:44:19 von Jim Gibson

In article , andy wrote:

> Could anyone kindly help me figure out how to add the day of the week to
> David Spelts' Traffic Log "Hits By Day"?
>
> I tried the following and could not implement any properly. I am a perl
> newbie and would appreciate any help. I imagine this is simple for a perl
> guru:
>
> #$dayofweek = Date_DayOfWeek($month,$day,$year);
> #my $date = ParseDateString("15 mar 1999");
> $date = substr($key,0,6);
> print UnixDate($date, "%a");
> #$dayofweek = UnixDate($date, "%A");
>
> #my $dt = DateTime->new(year => $year, month => $month, day => $day);
> #my $dow = $dt->day_of_week();
>
> #use Date::Calc; # you need this to calculate your date
> #my $a = Date::Calc::Date_to_Text(2005, 12, 15);
>
> I am using a Linux server with perl ver 5.8.7
>
> all files required to run the script can be found here:
> http://www.spelts.com/trafficlog/

I responded to your identical post on comp.lang.perl. Please do not
multipost. Cross-post instead. If you don't know the difference, you
would do well to find out before posting again.

Thanks.

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

Re: day of the week

am 30.01.2007 16:52:57 von Andy

LOL

"Jim Gibson" wrote in message
news:290120071044197159%jgibson@mail.arc.nasa.gov...
> In article , andy wrote:
>
>> Could anyone kindly help me figure out how to add the day of the week to
>> David Spelts' Traffic Log "Hits By Day"?
>>
>> I tried the following and could not implement any properly. I am a perl
>> newbie and would appreciate any help. I imagine this is simple for a perl
>> guru:
>>
>> #$dayofweek = Date_DayOfWeek($month,$day,$year);
>> #my $date = ParseDateString("15 mar 1999");
>> $date = substr($key,0,6);
>> print UnixDate($date, "%a");
>> #$dayofweek = UnixDate($date, "%A");
>>
>> #my $dt = DateTime->new(year => $year, month => $month, day => $day);
>> #my $dow = $dt->day_of_week();
>>
>> #use Date::Calc; # you need this to calculate your date
>> #my $a = Date::Calc::Date_to_Text(2005, 12, 15);
>>
>> I am using a Linux server with perl ver 5.8.7
>>
>> all files required to run the script can be found here:
>> http://www.spelts.com/trafficlog/
>
> I responded to your identical post on comp.lang.perl. Please do not
> multipost. Cross-post instead. If you don't know the difference, you
> would do well to find out before posting again.
>
> Thanks.
>
> Posted Via Usenet.com Premium Usenet Newsgroup Services
> ----------------------------------------------------------
> ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
> ----------------------------------------------------------
> http://www.usenet.com

Re: day of the week

am 30.01.2007 21:02:27 von Sherm Pendley

"andy" comcast.net> writes:

Upside-down. Please don't do that - replies belong at the bottom.

> "Jim Gibson" wrote in message
> news:290120071044197159%jgibson@mail.arc.nasa.gov...
>
>> I responded to your identical post on comp.lang.perl. Please do not
>> multipost. Cross-post instead. If you don't know the difference, you
>> would do well to find out before posting again.
>
> LOL

So you consider rudeness funny?

OK, I guess I won't be answering your question then...

*plonk*

sherm--

--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net

Re: day of the week

am 30.01.2007 21:59:32 von Andy

even more laughs...

I didn't realize they had computers in W. Virginia. Did you trade your banjo
in for a used 386mhz?

Thank you for not posting your "answer", it probably would have been a worse
"solution" than Jimbo's. Besides, I already solved it myself with online
manuals.

I hope you two ng trolls are not a true sampling of the quality of people
that frequent this ng.


"Sherm Pendley" wrote in message
news:m24pq8ffl8.fsf@Sherm-Pendleys-Computer.local...
> "andy" comcast.net> writes:
>
> Upside-down. Please don't do that - replies belong at the bottom.
>
>> "Jim Gibson" wrote in message
>> news:290120071044197159%jgibson@mail.arc.nasa.gov...
>>
>>> I responded to your identical post on comp.lang.perl. Please do not
>>> multipost. Cross-post instead. If you don't know the difference, you
>>> would do well to find out before posting again.
>>
>> LOL
>
> So you consider rudeness funny?
>
> OK, I guess I won't be answering your question then...
>
> *plonk*
>
> sherm--
>
> --
> Web Hosting by West Virginians, for West Virginians: http://wv-www.net
> Cocoa programming in Perl: http://camelbones.sourceforge.net