The date_trunc
function uses field either millisecond or second, but millisecond is too small for me and second too large. I want something in between like 100 milliseconds (1/10 second).
How can I achieve this in PostgreSQL?
I think you can do this with conversion. The following should give you tenths of a second:
select cast(datecol as timestamp(1))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With