DC_DATETIME_NOW(3)

πŸ“¦ version 0.9.0, in nixos 26.05, nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, welcome to dc_datetime_now(3) from the Library Functions Manual ✨ the whole vibe is literally: return the current integral timestamp. that's it, that's the main character energy πŸŽ€

πŸ“š LIBRARY πŸ“š

the library is β€œlibdivecomputer” β€” yes, that one, libdivecomputer πŸ’…

✨ SYNOPSIS ✨

#include <libdivecomputer/datetime.h>

dc_ticks_t
dc_datetime_now();

πŸ’« DESCRIPTION πŸ’«

you're getting the current system timestamp as an integral value β€” no fancy date object, just the number, periodt πŸ”₯

the dc_datetime_now function may invoke libc's time(3), so don't be surprised if it slides into that, iykyk πŸ‘€

πŸŽ€ RETURN VALUES πŸŽ€

this always returns the system time. no cap, always 🫢

πŸ¦‹ SEE ALSO πŸ¦‹

πŸ‘‘ AUTHORS πŸ‘‘

  • the library β€œlibdivecomputer” library was written by Jef Driesen, jef@libdivecomputer.org πŸ’–
  • the manpages were written by Kristaps Dzonsons, kristaps@bsd.lv ✨

xoxo, Debian πŸ’… β€” January 11, 2017 β€” signing off as DC_DATETIME_NOW(3) πŸŽ€βœ¨

πŸ“¦ where this page comes from