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:
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
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