OK, let's start fresh:

date_trunc is two pages down:  
https://www.postgresql.org/docs/9.1/functions-datetime.html

<https://www.postgresql.org/docs/9.1/functions-datetime.html>
Also:  
https://www.postgresql.org/docs/9.1/functions-datetime.html#FUNCTIONS-DATETIME-TRUNC

Truncate on timestamp:

date_trunc('hour', timestamp '2001-02-16 20:38:40')

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/366aed3b-b8d9-4341-8d01-672203d948a7%40googlegroups.com.

Reply via email to