On Tue, Jan 30, 2001 at 08:49:34PM +1100, Dean Hamstead wrote:

> Im trying to get a value from a timestamp field
> into a format that strftime can manipulate.

Here's an example from the perlfunc man page:

       use POSIX qw(strftime);

       $now_string = strftime "%a %b %e %H:%M:%S %Y", gmtime;

If you want local time, you'd obviously use localtime() in place of
gmtime().


Cheers,

John
-- 
whois [EMAIL PROTECTED]


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to