DIFFTIME(3POSIX)
π DIFFTIME(3POSIX) π
okay bestie, welcome to the POSIX Programmer's Manual β¨ this little page lives in the POSIX Programmer's Manual, and the header says it's DIFFTIME(3POSIX) from the POSIX Programmer's Manual, so you're in the right place π«Ά
πΈ PROLOG πΈ
bestie, real talk first: this manual page is part of the POSIX Programmer's Manual. the Linux implementation of this interface may differ (so like, go check the corresponding Linux manual page for the actual Linux tea β), or honestly? the interface may not even be implemented on Linux at all. no cap.
β¨ NAME β¨
difftime β compute the difference between two calendar time values π
π SYNOPSIS π
#include <time.h>
double difftime(time_t time1, time_t time0);
π¦ DESCRIPTION π¦
so the functionality described on this reference page is aligned with the ISO C standard. if there's any conflict between what's written here and the ISO C standard, that conflict is unintentional, periodt. this volume of POSIX.1β2017 defers to the ISO C standard, like it's literally bowing to it π
the difftime() function shall compute the difference between two calendar times (as returned by time()): time1 - time0.
that's it. that's the whole job. subtraction. iconic behavior honestly π
π₯ RETURN VALUE π₯
the difftime() function shall return the difference expressed in seconds as a type double. π
π ERRORS π
no errors are defined. none. zero. the vibes are immaculate, nothing can go wrong here apparently πβ¨
the following sections are informative.
πΈ EXAMPLES πΈ
none. (yes bestie, literally none β they left us with nothing π)
π APPLICATION USAGE π
none. again. nothing. we're thriving on emptiness π
π§ RATIONALE π§
none. the rationale said "no thoughts, head empty" π
β FUTURE DIRECTIONS β
none. the future is a mystery, and this page is not gonna spoil it π¦
π SEE ALSO π
asctime()clock()ctime()gmtime()localtime()mktime()strftime()strptime()time()utime()
also, the Base Definitions volume of POSIX.1β2017, <time.h> π
π COPYRIGHT π
okay, legal bestie moment, read it carefully because this part is not a joke π
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .
Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .
and that's the whole page, bestie π«Ά this was IEEE/The Open Group, 2017, signing off on DIFFTIME(3POSIX) β thanks for reading the whole thing, you ate that π
β¨π
π¦ where this page comes from
- debian bookworm: manpages-posix-dev 2017a-2 Β· Other
- debian trixie: manpages-posix-dev 2017a-2 Β· Other
- ubuntu jammy: manpages-posix-dev 2017a-2 Β· Other
- ubuntu noble: manpages-posix-dev 2017a-2 Β· Other
- ubuntu resolute: manpages-posix-dev 2017a-2build1 Β· Other
- ubuntu stonking: manpages-posix-dev 2017a-2.1 Β· Other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms