Randolph West covers the TIME
data type in SQL Server:
This week, we look at the
TIME
data type. It is formatted asHH:mm:ss.fffffff
, whereHH
is hours between 0 and 23,mm
is minutes between 0 and 59,ss
is seconds between 0 and 59, andf
represents 0 or more fractional seconds, up to a maximum of seven decimal places.With a maximum length of 5 bytes,
TIME
can store a value with a granularity of up to 100 nanoseconds.
I tend not to use TIME
very often. It’s useful if you need it, but I rarely find myself needing a dateless time.