AUPARSE_GET_TIME(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_GET_TIME(3) πŸ’–

okay bestie, so this one is from the Linux Audit API β€” it's auparse_get_time, a lil member of the auparse family, and she's here to hand you a timestamp. let's get into it ✨


🌸 NAME 🌸

auparse_get_time β€” get event's time πŸ•°οΈ


πŸŽ€ SYNOPSIS πŸŽ€

#include <auparse.h>

time_t auparse_get_time(const auparse_state_t *au);"

(yes the trailing " is really there in the original, i'm not gonna gaslight you πŸ’…)


✨ DESCRIPTION ✨

so like, auparse_get_time will access just the time portion of the timestamp data structure for the current event. that's it, that's the whole job β€” she's a specialist, not a generalist πŸ‘‘

like, the timestamp data structure has more going on, but this function is only here for the time part. main character energy fr.


πŸ¦‹ RETURN VALUE πŸ¦‹

  • Returns 0 if an error occurs 😭
  • otherwise, the valid time value in time_t format 🫢

so basically: zero means something went wrong, anything else is your actual time. vibe check accordingly.


πŸ’œ SEE ALSO πŸ’œ

the whole friend group, go say hi πŸ’ž


πŸ‘‘ AUTHOR πŸ‘‘

Steve Grubb


and that's the page!! written by Steve Grubb, brought to you by Red Hat, dated Sept 2007 β€” yes she's a vintage icon and she still slays πŸ’…βœ¨

mwah, go timestamp something πŸ’–