Home : General : Perl Programming :

General: Perl Programming: Re: [hennagaijin] question about GT::Date::date_transform: Edit Log

Here is the list of edits for this post
Re: [hennagaijin] question about GT::Date::date_transform
Why not try something like this, if the times are all you need;

Code:
my ($hours,$mins);
if ($time =~ m/\d{2,2}\d{2,2}/) { $hours = $1; $mins = $2; }

Untested code, but the idea is there :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Last edited by:

Andy: Jul 22, 2003, 3:06 PM

Edit Log: