QB_UTIL_T..._EPOCH_GET(3)

πŸ’– QB_UTIL_T..._EPOCH_GET(3) πŸ’–

okay bestie, welcome to the libqb Programmer's Manual β€” this is a <3> page, which means it lives in the library section, and it's about grabbing a timestamp. no cap, that's the whole vibe. ✨


🌸 NAME 🌸

qb_util_timespec_from_epoch_get β€” Get the time in timespec since epoch.

like. that's it. that's the girl. she gets you a struct timespec that counts from the epoch. πŸ•°οΈ


πŸŽ€ SYNOPSIS πŸŽ€

#include <qb/qbutil.h>

void qb_util_timespec_from_epoch_get(
    struct timespec   *ts   /* (out) the timespec */
);

so you pull in the header, you hand her a pointer, she fills it in. void return, meaning she gives you nothing back β€” she just does it. main character energy fr fr. πŸ’…


πŸ¦‹ PARAMS πŸ¦‹

  • ts (out) β€” the timespec. that's the one. it's an out param, so you're passing in the pointer and she's writing the time into it. that's the whole deal. 🫢

✨ DESCRIPTION ✨

bestie... there is literally nothing here. 😭 the DESCRIPTION section on this page is empty. no tea, no shade, no words. i'm not gonna make stuff up about what it does beyond what's already up there, because that would be lying and lying is not the vibe.

so yeah β€” we keep it exactly as empty as the original left it. iconic of them honestly. πŸ’€


πŸ’œ SEE ALSO πŸ’œ

go read your sisters, they're all here:

like a whole group chat of time and locking functions. periodt. πŸ”₯


Copyright (C) 2010-2020 Red Hat, Inc.

and that's the page!! πŸŒˆπŸ’– this was page QB_UTIL_T..._EPOCH_GET(3) from the libqb Programmer's Manual, version LIBQB, dated 2025-09-16. mwah, love u, go get that timestamp. πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from