Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Changing GT::Date::date_transform??

Quote Reply
Changing GT::Date::date_transform??
Firstly, VERY cool that this is built in!

Does anyone know how to alter the date_transform call so it will display the time part in 12 hour format, with 'am' or 'pm' after it?

So instead of saying '13:48:23' it would output '1:48PM'.

Any help appreciated!

Thanks,
Regan.


Quote Reply
Re: Changing GT::Date::date_transform?? In reply to
just look at GT/Date.pm
all the tags for date manipulation is at the top of the file...

so it'd be something like:
"%h%:%M%%tt%" for the 2nd argument to date_transform.

Quote Reply
Re: Changing GT::Date::date_transform?? In reply to
EXCELLENT!

That worked a treat! Thanks very much!

regan.