I\'me looking for a function that would receive a time and would round it to the next/previous hour / half-hour / quarter / minute.
Very nice thanks. I used it in-line to round to 15 minutes
convert(smalldatetime,ROUND(cast(TDatalog.Time as float) * (24/.25),0)/(24/.25)) AS RoundedTime