AUPARSE_TIMESTAMP_COMPARE(3)

πŸ“¦
version 4.2.1 Β· 3 versions
, in alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, fedora 43, fedora 44, nixpkgs unstable, ubuntu resolute, ubuntu stonking

πŸ’– AUPARSE_TIMESTAMP_COMPARE πŸ’–

okay bestie, welcome to the auparse_timestamp_compare page from the Linux Audit API β€” yes that whole family of auparse girls, and this one is a tiny little queen whose whole job is comparing timestamps ✨


✨ NAME ✨

auparse_timestamp_compare β€” literally just compares timestamp values, that's the whole gig πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <auparse.h>

int auparse_timestamp_compare(const au_event_t
*e1,constau_event_t*"e2);"
not me noticing the synopsis formatting in the original is a little chaotic β€” the stray quotes and the squished-together tokens are exactly as they were handed to me, so I'm passing them straight to you, no edits, no touch-ups πŸ’…

🌸 DESCRIPTION 🌸

so basically auparse_timestamp_compare compares the values of 2 timestamps. two of them. a duo. a little timestamp duel 🫢 that's it, that's the function.


πŸ‘‘ RETURN VALUE πŸ‘‘

it hands back -1, 0, or 1 β€” respectively depending on whether e2 is less than, equal to, or greater than e1 πŸ’€

so real talk, watch the order: it's reading e2 against e1, not the other way around. the way that comparison is flipped from what your brain expects? iconic. be careful bestie 🧚


πŸ’œ SEE ALSO πŸ’œ


🌈 AUTHOR 🌈

Steve Grubb πŸ‘‘ the author, the moment, the main character energy


and that's the whole page fr fr πŸ’– this came to you from Red Hat, dated Feb 2007 β€” a vintage baddie, lowkey timeless, slay πŸŒΈπŸ¦‹βœ¨