DC_DATETIME_NOW(3)
π 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
- nixos 26.05: libdivecomputer 0.9.0
- nixpkgs unstable: libdivecomputer 0.9.0
- Copyright (C) 2017 Kristaps Dzonsons <kristaps@bsd.lv>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms