snowflake.snowpark.functions.time_from_parts¶
- snowflake.snowpark.functions.time_from_parts(hour: Union[Column, str, int], minute: Union[Column, str, int], second: Union[Column, str, int], nanoseconds: Optional[Union[Column, str, int]] = None) Column[source]¶
Creates a time from individual numeric components.
TIME_FROM_PARTS is typically used to handle values in “normal” ranges (e.g. hours 0-23, minutes 0-59), but it also handles values from outside these ranges. This allows, for example, choosing the N-th minute in a day, which can be used to simplify some computations.
Example: