Gossamer Forum
Home : General : Perl Programming :

question about GT::Date::date_transform

Quote Reply
question about GT::Date::date_transform
Hi all,

Not sure if I should post this here or in the Discussion forum since it involves a GT module, but I trust it will be moved if necessary...

In any event, I'm having a heck of a time trying to transform some funky time strings using GT::Date::date_transform. The string formats are basically in 24 hour format without any colons or anything. Just a 3 or 4 digit string. For example, for 6:00 AM, the string would be '600'. For 10:30 PM, the string would be '2230'. Simple enough, right?

Well, here's what I'm using to transform it to a friendlier format:

Code:
GT::Date::date_transform($time,'%H%%MM%','%h%:%MM% %tt%')


Problem is, it doesn't return anything... Anyone have any idea where I'm going wrong??

Many thanks in advance.

Fractured Atlas :: Liberate the Artist
Services: Healthcare, Fiscal Sponsorship, Marketing, Education, The Emerging Artists Fund
Subject Author Views Date
Thread question about GT::Date::date_transform hennagaijin 7976 Jul 22, 2003, 2:24 PM
Thread Re: [hennagaijin] question about GT::Date::date_transform
Andy 7811 Jul 22, 2003, 3:00 PM
Thread Re: [Andy] question about GT::Date::date_transform
hennagaijin 7878 Jul 22, 2003, 3:04 PM
Thread Re: [hennagaijin] question about GT::Date::date_transform
Andy 7824 Jul 22, 2003, 3:06 PM
Thread Re: [Andy] question about GT::Date::date_transform
hennagaijin 7876 Jul 22, 2003, 3:14 PM
Thread Re: [hennagaijin] question about GT::Date::date_transform
Andy 7851 Jul 22, 2003, 3:16 PM
Thread Re: [Andy] question about GT::Date::date_transform
hennagaijin 7846 Jul 22, 2003, 3:21 PM
Thread Re: [hennagaijin] question about GT::Date::date_transform
hennagaijin 7818 Jul 22, 2003, 3:30 PM
Post Re: [hennagaijin] question about GT::Date::date_transform
Andy 7839 Jul 23, 2003, 12:42 AM
Thread Re: [hennagaijin] question about GT::Date::date_transform
Paul 7830 Jul 23, 2003, 2:56 AM
Post Re: [Paul] question about GT::Date::date_transform
hennagaijin 7792 Jul 23, 2003, 1:02 PM