TIMEFROMPARTS
date/time arithmetic, parts, construction or truncation
What changes
- Input
- date/time arguments
- Output or change
- date/time or integer value
- Return type
- time( precision )
Syntax at a glance
TIMEFROMPARTS ( hour, minute, seconds, fractions, precision )
Work example
Build a time value from hour, minute, second, and fractional parts.
Test month end, leap day, offset, and the session language that will run the query.
Check your work Set precision explicitly and test component ranges before using input fields.
Open Microsoft Learn for full syntax, permissions, and details for your version.