pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Busby <busby@pnts.com>
To: Michael Hanna <zen@hwcn.org>
To: pgsql-php@postgresql.org
Subject: Re: Best way to convert PG's TIMESTAMPTZ to PHP DATE?
Date: Mon, 30 Jun 2003 13:06:16 -0700
Message-ID: <028801c33f43$184e28c0$1100000a@busbydev> (raw)
References: <A50650BC-AB34-11D7-AB69-00039308EB2C@hwcn.org>

Both of these work OK for me

date('r',strtotime($record->date_field));

or

select to_char(date_field,'FORMAT SPEC') as date_field, column_two,
column_three from x where y=z

/B


----- Original Message ----- 
From: "Michael Hanna" <zen@hwcn.org>
To: <pgsql-php@postgresql.org>
Sent: Monday, June 30, 2003 12:54
Subject: [PHP] Best way to convert PG's TIMESTAMPTZ to PHP DATE?


> Anybody have any advice on this..
> Michael
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
>




view thread (9+ messages)  latest in thread

Message-ID: <028801c33f43$184e28c0$1100000a@busbydev>
Permalink:  ../028801c33f43$184e28c0$1100000a@busbydev/
Also on:    postgresql.org/message-id/028801c33f43$184e28c0$1100000a@busbydev

 · 

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: busby@pnts.com, zen@hwcn.org
  Subject: Re: Best way to convert PG's TIMESTAMPTZ to PHP DATE?
  In-Reply-To: <028801c33f43$184e28c0$1100000a@busbydev>
  References: <A50650BC-AB34-11D7-AB69-00039308EB2C@hwcn.org> <028801c33f43$184e28c0$1100000a@busbydev>

* 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