Re: epoch from date field

From: Lee Harr <missive(at)frontiernet(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: epoch from date field
Date: 2002-07-04 03:08:15
Message-ID: ag0e6v$jam$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> When extracting the epoch from a date:
>
> select extract(epoch from date(map_date)) from datemaps;
>
> For a date: 2002-07-04
> it returns 1025740800
> which apparently translates to today (7/3) at 5pm. Is this right?
> Shouldn't it return the epoch for midnight on 7/4?
>

Hmm. Just a guess, but could this be a time zone thing?

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2002-07-04 03:19:22 Re: EVAL and SET equivalents in PostgreSQL
Previous Message Justin Clift 2002-07-04 02:57:16 Libre Software Meeting - Université Bordeaux I, France