[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: localtime localized
****** message to minivend-users from Frank Miedreich <miedreich@acm.org> ******
>****** message to minivend-users from Thomas Walter <tw@mail.itreff.de>
>******
>
>How Do I get the german date-format out of [calc]localtime[/calc]?
>
> Balu
[perl]
my(@today)=localtime();
my(@months)=('Januar','Februar','März','April','Mai','Juni','Juli','August'
,'September','Oktober','November','Dezember');
$today[5]+=1900;
return "$today[3]. $months[$today[4]] $today[5]";
[/perl]
If you want the day of the week as well, it is in $today[6], Sunday=0.
Frank
--
Frank Miedreich
Max-Planck-Institut fuer psychologische Forschung
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list