time values past 24:00:00 (or rather 23:59:60) - Mailing list pgsql-bugs

From Christoph Berg
Subject time values past 24:00:00 (or rather 23:59:60)
Date
Msg-id 20200520125807.GB296739@msg.df7cb.de
Whole thread Raw
Responses Re: time values past 24:00:00 (or rather 23:59:60)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
This is ok:

# select '23:59:60'::time;
   time
──────────
 24:00:00

# select '23:59:61'::time;
ERROR:  22008: date/time field value out of range: "23:59:61"

This is not ok:

# select '23:59:60.999'::time;
     time
──────────────
 24:00:00.999

-- value isn't read back:
# select '24:00:00.999'::time;
ERROR:  22008: date/time field value out of range: "24:00:00.999"

-- we can even go to :01
# select '23:59:60.9999999'::time;
   time
──────────
 24:00:01


PG 12.3.

Christoph



pgsql-bugs by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: BUG #16343: Build problem: Install.pm "Could not find debug orrelease binaries"
Next
From: Peter Eisentraut
Date:
Subject: Re: Re : Re: BUG #16441: Cannot multi-insert into generated columnwith DEFAULT value