pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff <jam@zoidtechnologies.com>
To: Michael Hanna <zen@hwcn.org>
Cc: pgsql-php@postgresql.org, Jeff <jam@zoidtechnologies.com>
Subject: Re: Best way to convert PG's TIMESTAMPTZ to PHP DATE?
Date: Mon, 30 Jun 2003 17:35:01 -0400
Message-ID: <20030630213501.GG1614@zoidtechnologies.com> (raw)
In-Reply-To: <20030630212701.GF1614@zoidtechnologies.com>
References: <A50650BC-AB34-11D7-AB69-00039308EB2C@hwcn.org>
	<20030630212701.GF1614@zoidtechnologies.com>

On Mon, Jun 30, 2003 at 05:27:01PM -0400, Jeff wrote:
[..snipped..]
> $lastmodified = $row["datepostedepoch"];
> $lastmodified = datestamp($lastmodified);
> print "{$lastmodified}";
[..snipped..]

EEK! I should have proofread the *entire* message :(

that really should read:

$dateposted = $row["datepostedepoch"];
$dateposted = datestamp($dateposted);
print "{$dateposted}";

obviously that doesn't cover loading $row with the right values, but eros
handles that, too, for the most part. there are working examples in the
tarball of this technique in action.

regards,
Jeff
-- 
|| Jeff - http://zoidtechnologies.com/
|| GNUPG Fingerprint: A607 0F19 7C75 1305 67E4  BDFF 26BD 606E 3517 2A42



view thread (9+ messages)  latest in thread

Message-ID: <20030630213501.GG1614@zoidtechnologies.com>
Permalink:  ../20030630213501.GG1614@zoidtechnologies.com/
Also on:    postgresql.org/message-id/20030630213501.GG1614@zoidtechnologies.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: jam@zoidtechnologies.com, zen@hwcn.org
  Subject: Re: Best way to convert PG's TIMESTAMPTZ to PHP DATE?
  In-Reply-To: <20030630213501.GG1614@zoidtechnologies.com>
  References: <A50650BC-AB34-11D7-AB69-00039308EB2C@hwcn.org> <20030630212701.GF1614@zoidtechnologies.com> <20030630213501.GG1614@zoidtechnologies.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox