Created
April 12, 2017 14:39
-
-
Save toxn12/6038eca81b0e2b7e6094884088808f49 to your computer and use it in GitHub Desktop.
TimeToTicks.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE FUNCTION [dbo].[TimeToTicks] (@hour int, @minute int, @second int) | |
RETURNS bigint | |
WITH SCHEMABINDING | |
AS | |
BEGIN | |
RETURN (((@hour * 3600) + CONVERT(bigint, @minute) * 60) + CONVERT(bigint, @second)) * 10000000 | |
END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment