tail head cat sleep
QR code linking to this page

Manual Pages  — ELFTC_TIMESTAMP

NAME

elftc_timestamp – return the current or environment-provided timestamp

CONTENTS

LIBRARY

libelftc

SYNOPSIS

#include <libelftc.h>

int
elftc_timestamp(time_t *timestamp);

DESCRIPTION

The elftc_timestamp() function returns a timestamp supplied by the SOURCE_DATE_EPOCH environment variable, or the current time provided by time(3) if the environment variable is not set.

The timestamp argument specifies a pointer to the location where the timestamp will be stored.

RETURN VALUES

Function elftc_timestamp() returns 0 on success, and -1 in the event of an error.

ERRORS

The elftc_timestamp() function may fail with the following errors:
[EINVAL] SOURCE_DATE_EPOCH contains invalid characters.
[ERANGE] SOURCE_DATE_EPOCH specifies a negative value or a value that cannot be stored in a time_t.
The elftc_timestamp() function may also fail for any of the reasons described in
strtoll(3).

SEE ALSO

strtoll(3), time(3)

ELFTC_TIMESTAMP (3) August 24, 2016

tail head cat sleep
QR code linking to this page


Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

"I liken starting one's computing career with Unix, say as an undergraduate, to being born in East Africa. It is intolerably hot, your body is covered with lice and flies, you are malnourished and you suffer from numerous curable diseases. But, as far as young East Africans can tell, this is simply the natural condition and they live within it. By the time they find out differently, it is too late. They already think that the writing of shell scripts is a natural act."
— Ken Pier, Xerox PARC