current_time(9)

current_time9

Return fs time

Usage

struct timespec current_time(struct inode * inode);

Arguments

inode

inode.

Overview

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.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.