-- Returns a datetime value for the specified time at the "base" date (1/1/1900)
CREATE function [dbo].[sudf_Common_Time]
(
@intHour int,
@intMinute int,
@intSecond int,
@dtBaseDate datetime
)
returns datetime
as
begin
-- Build the time
return dbo.sudf_Common_DateOnly(@dtBaseDate) +
dateadd(ss,(@intHour*3600) + (@intMinute*60) + @intSecond,0)
end