in reply to conversion of a timestamp
my ($y, $m, $d, $h, $min, $s) = split /[- :]/, $timestamp; my ($y, $m, $d, $h, $min, $s) = $timestamp =~ /^(\d{4})-(\d\d)-(\d\d) +(\d\d):(\d\d):(\d\d)$/; # more robust
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: conversion of a timestamp
by barrycarlyon (Beadle) on Apr 10, 2006 at 22:04 UTC | |
|
Re^2: conversion of a timestamp
by barrycarlyon (Beadle) on Apr 10, 2006 at 22:06 UTC | |
by chromatic (Archbishop) on Apr 10, 2006 at 23:54 UTC |