[rrd-users] rrdtool::graph and German weekday names

Joachim Hartmann joachim.hartmann at gmx-topmail.de
Sat Nov 4 12:13:17 CET 2017


Hello Tobi, hello Heinrich,
Am 02.11.2017 um 23:38 schrieb Heinrich Schnorrenberg:
> Hi Jochen
> 
> 
> I just checked it on my raspi . here it works.  the script is :
> 
> hope that helps
> 
> regards Heinrich
> 
I'm sorry, I didn't get back to you until now! I was out of town for two 
days. I'm a bloody layman about pearls:
How do I run the script as cgi?
This script shows the correct result on my command line!

+++++++++++++++++++++++++++++++++++++++++++++++++++++
#! /usr/bin/perl -w
#
use warnings;
use POSIX qw (locale_h);
use locale;
use POSIX qw (strftime);


#
for (1... 7) {
    $weekday[$_] = strftime ("%a", 0,0,0,0, $_, 3,96);
    printf "$weekday[$_]\n";
}
++++++++++++++++++++++++++++++++++++++++++++++++++++
#~# perl test_locale.pl
Mo
Di
Mi
Do
Fr
Sa
So
#~#
++++++++++++++++++++++++++++++++++++++++++++++++++++

Only the question is, is that what Tobi meant!

-- 
Gruß aus der Stadt der CeBIT
Jochen



More information about the rrd-users mailing list