---
name: "current_time"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/current_time"
---

# current\_time(9)

Return FS time

## NAME

current\_time - Return FS time

## SYNOPSIS

**struct timespec current\_time(struct inode \*** *inode***);**

## ARGUMENTS

*inode*

inode.

## DESCRIPTION

Return the current time truncated to the time granularity supported by the fs.

Note that inode and inode-\>sb cannot be NULL. Otherwise, the function warns and returns time without truncation.

## COPYRIGHT
