Q&A about the site for users of TeX, LaTeX, ConTeXt, and related typesetting systems
-- At what hour do I add most posts, both questions and answers? -- UTC (GMT) time zone. The week starts with Sunday. -- Parameters: -- UserId -- HourOrDOW (1 - hours, 2 - day of week) IF ##HourOrDOW:int?1## = 1 SELECT DATEPART("hour", CreationDate) AS [Hour you add a post], COUNT(*) AS [Number of your posts per hour, UTC (GMT)] FROM Posts WHERE OwnerUserId = ##UserId## GROUP BY DATEPART("hour", CreationDate) ELSE IF ##HourOrDOW:int?1## = 2 SELECT DATEPART("weekday", CreationDate) AS [Weekday you add a post], -- Little hack to show DoW with data.SO graph builder DATENAME(dw, CreationDate), COUNT(*) AS [Number of your posts per weekday] FROM Posts WHERE OwnerUserId = ##UserId## GROUP BY DATEPART("weekday", CreationDate), DATENAME(dw, CreationDate) ORDER BY DATEPART("weekday", CreationDate)