barrycarlyon has asked for the wisdom of the Perl Monks concerning the following question:
ive fetched a set of data from a database,
with a set number of columns, lets say 5
the 5th column is the timestamp columne, called timestamp.
Timestamp has the format:
0000-00-00 00:00:00
yyyy-mm-dd hr:mm:ss
How do i take this value and then convert so, that i put;
yyyy in $year
mm in $month
dd in $day
hr in $hour
mm in $minute
ss in $seconds
Hopefull that is clear enough apparently i dont make my questions clear enough so...
Yours
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: conversion of a timestamp
by davidrw (Prior) on Apr 10, 2006 at 22:02 UTC | |
by barrycarlyon (Beadle) on Apr 10, 2006 at 22:04 UTC | |
by barrycarlyon (Beadle) on Apr 10, 2006 at 22:06 UTC | |
by chromatic (Archbishop) on Apr 10, 2006 at 23:54 UTC | |
|
Re: conversion of a timestamp
by Herkum (Parson) on Apr 11, 2006 at 02:35 UTC |