Re: Date/time format?

From: Date: Wed, 28 Mar 2007 19:42:03 +0000
Subject: Re: Date/time format?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-251564@lists.php.net to get a copy of this message
Jason Pruim wrote: > Hi Everyone, > > First off, I'm using PHP 5.2.0 and apache 1.3.33 > > I am trying to figure out what format a string is in in a database. > It's a timecard system that I have found on-line and I am attempting > to figure out how to write a script that would give me everyones > timecard for the month on one screen I can print out for accounting > to use. Below is an example of one of the lines in the database, What > I'm really interested in is how it represents the "day". > > user day job_name > minutes sequence > > root 1171774800 Production & technology Manager > 990 3 > Looks like epoch time. Use date("Y-m-d",$epochtime); to get a standard date string out of it. www.php.net/date/

« previous php.general (#251564) next »