---
name: "timespec_to_ktime"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/timespec_to_ktime"
---

# timespec\_to\_ktime(9)

convert a timespec to ktime\_t format

## NAME

timespec\_to\_ktime - convert a timespec to ktime\_t format

## SYNOPSIS

**ktime\_t timespec\_to\_ktime(const struct timespec** *ts***);**

## ARGUMENTS

*ts*

the timespec variable to convert

## RETURN

A ktime\_t variable with the converted timespec value.

## COPYRIGHT
