current_time (9) - Linux Manuals
current_time: 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