pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: lynch@lscorp.com
To: pgsql-sql@postgresql.org
Subject: Datetime in humane format
Date: Sat, 5 Sep 1998 23:27:08 -0500
Message-ID: <v02140b15b2177863c44f@[207.152.64.133]> (raw)

So, I followed the advice in the archives and used the datetime type.

Now, I've got entries like 'Sun Sep 06 00:06:57 1998 EDT' in my table.

So, how do I turn that into something that a normal human can read?

"Sep 06 1998 12:06 am" would be nice...

Or, how do I turn that back into seconds since epoch?  I'm using PHP which
has a nice date function that I think I can coerce into giving me what I
want... unless it also thinks that humans understand 00:06:57 as just after
midnight...

--
--
-- "TANSTAAFL" Rich lynch@lscorp.com





view thread (3+ messages)  latest in thread

Message-ID: <v02140b15b2177863c44f@[207.152.64.133]>
Permalink:  ../v02140b15b2177863c44f@%5B207.152.64.133%5D/
Also on:    postgresql.org/message-id/v02140b15b2177863c44f@[207.152.64.133]

 · 

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-sql@postgresql.org
  Cc: lynch@lscorp.com
  Subject: Re: Datetime in humane format
  In-Reply-To: <v02140b15b2177863c44f@[207.152.64.133]>
  References: <v02140b15b2177863c44f@[207.152.64.133]>

* 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