[rt-users] Set date format dd/mm/yy

Emmanuel Lacour elacour at easter-eggs.com
Tue Apr 8 04:31:07 EDT 2014


On Tue, Apr 08, 2014 at 01:25:03AM -0700, losintikfos wrote:
> Thanks Emml - it works.
> 
> Quick one!
> I have tried to activate the time without the seconds like this:
> 
> Set($DateTimeFormat, {
>     Format => 'LocalizedDateTime',
>     Date => 1,
>     Time => 1,
>     DateFormat => 'date_format_short',
>     Seconds => 0
>     },
> ); 
> 
> The seconds doesn't seem to turn off. Is it possible to achieve this?
> 


See perldoc DateTime::Locale:


TimeFormat => 'time_format_short'

should be ok for you.

-- 
Easter-eggs                              Spécialiste GNU/Linux
44-46 rue de l'Ouest  -  75014 Paris  -  France -  Métro Gaité
Phone: +33 (0) 1 43 35 00 37    -   Fax: +33 (0) 1 43 35 00 76
mailto:elacour at easter-eggs.com  -   http://www.easter-eggs.com



More information about the rt-users mailing list