pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Firthouse banu <penguinsfairy@gmail.com>
Cc: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Subject: Re: Printing time stamp
Date: Thu, 7 Oct 2021 14:31:09 -0400
Message-ID: <20211007183109.GC5476@momjian.us> (raw)
In-Reply-To: <CAK_Ha4w=5QGiwNufcABo7NrJ_JxsMVYUCnjphvedcFj4PLYFnA@mail.gmail.com>
References: <CAK_Ha4w=5QGiwNufcABo7NrJ_JxsMVYUCnjphvedcFj4PLYFnA@mail.gmail.com>

On Thu, Sep 23, 2021 at 05:17:14PM +0530, Firthouse banu wrote:
> Thanks you all for clarifying my doubts so far. 
> 
> Here is another one. 
> 
> Scenario
> 
> How to print time stamp for every 60 seconds like 60 seconds interval between
> given start and end date 

How is this?

	SELECT generate_series('2021-01-01 00:00:00', '2021-01-02 00:00:00', '1 minute'::interval);

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  If only the physical world exists, free will is an illusion.






view thread (2+ messages)

Message-ID: <20211007183109.GC5476@momjian.us>
Permalink:  ../20211007183109.GC5476@momjian.us/
Also on:    postgresql.org/message-id/20211007183109.GC5476@momjian.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: bruce@momjian.us, penguinsfairy@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Printing time stamp
  In-Reply-To: <20211007183109.GC5476@momjian.us>

* 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