Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mYYAk-0004Qc-Ei for pgsql-admin@arkaria.postgresql.org; Thu, 07 Oct 2021 18:31:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mYYAj-00025o-EI for pgsql-admin@arkaria.postgresql.org; Thu, 07 Oct 2021 18:31:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mYYAj-00025g-5a for pgsql-admin@lists.postgresql.org; Thu, 07 Oct 2021 18:31:13 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mYYAg-0005So-Oz for pgsql-admin@lists.postgresql.org; Thu, 07 Oct 2021 18:31:12 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1mYYAf-0007DA-DW; Thu, 07 Oct 2021 14:31:09 -0400 Date: Thu, 7 Oct 2021 14:31:09 -0400 From: Bruce Momjian To: Firthouse banu Cc: "pgsql-admin@lists.postgresql.org" Subject: Re: Printing time stamp Message-ID: <20211007183109.GC5476@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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 https://momjian.us EDB https://enterprisedb.com If only the physical world exists, free will is an illusion.