Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
create function SecTimeDay (@sec integer)
returns varchar(19)
as
begin
declare @DayTime varchar(19)
/* Calculate # of days and display if necessary */
Select @DayTime = Case When @Sec >= 86400
Then Convert(VarChar(5), @Sec/86400)
+ ' days '
Else ''
End
/* Add HH:MM:SS to number of days (or ') for output */
+ Convert(VarChar(8), DateAdd(Second, @Sec, 0), 108)
return @DayTime
end