Unfortunatelly even this does not work. I got this error "Scrip 83 Commit failed: syntax error at (eval 2172) line 26, near "strftime "%A"" (/opt/rt3/bin/../lib/RT/Action/UserDefined.pm:80).
Any suggestions. Thanks, Tom. Marouane Himdi napsal(a): > i think this should work > > my $dayOfWeek = strftime "%A", localtime; > > > > Dr Marouane HIMDI > > > ----- Mail Original ----- > De: "Tomáš Sára" <[email protected]> > À: "Matthew Seaman" <[email protected]> > Cc: [email protected] > Envoyé: Vendredi 16 Janvier 2009 11h56:30 GMT +01:00 Amsterdam / > Berlin / Berne / Rome / Stockholm / Vienne > Objet: Re: [rt-users] Day of the week > > Thanks for your answer. What you wrote works fine in shell. I need to > do this in scrip. Is there any possibility? > > Thanks a lot for any comments, > Tom. > > Matthew Seaman napsal(a): >> Tomáš Sára wrote: >>> Hello everybody, >>> >>> is there a possibility to find out the day of the week out of the >>> date? I sopose there should be a perl function for this. Am I right? >>> I searched mailing lists but I didn't find any information there. >>> >>> Thanks in advance for any help, >> % perl -MPOSIX -le 'print strftime "%A", localtime;' >> Friday >> >> Cheers, >> >> Matthew >> > > _______________________________________________ > http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users > > Community help: http://wiki.bestpractical.com > Commercial support: [email protected] > > > Discover RT's hidden secrets with RT Essentials from O'Reilly Media. > Buy a copy at http://rtbook.bestpractical.com > _______________________________________________ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: [email protected] Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
