Crate time_sys [] [src]

Bindings and rewrites of include/linux/time.h and include/linux/time64.h

Functions

clock_getres

Finds the resolution of the specified clock, and if non-null, stores it in the timespec.

clock_gettime

Gets the time according to the specified clock ID and places it into the timespec pointer

clock_settime

Takes the time from the specified timespec and attempts to apply it to the clock based on ID

difftime

Calculates the difference, in seconds, between two values of time_t

gettimeofday

Gets the time of day in the specified timezone and place it into the timeval

mktime64

Creates a time64_t from the supplied year, month, day, hour, minute, and second

set_normalized_timespec

Sets the data contained in the borrowed timespec ts to normalized values

settimeofday

Sets the time of day from the timeval and applies rules from the timezone to it

time

Gets the current time as seconds from the UNIX epoch

timespec_add

Adds two timespecs together, returning the result as a new timespec

timespec_compare

Compares two timespecs

timespec_equal

Checks to see if two timespecs are equal

timespec_sub

Subtracts rhs from lhs, returning the difference as a new timespec

timespec_valid

Checks to see if a timespec is valid

timespec_valid_strict

Checks to see if a timespec is valid according to stricter rules

timeval_compare

Compares two timevals

timeval_valid

Checks to see if a timeval is valid