DC_DATETIME_MKTIME(3)

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

okay bestie, welcome to DC_DATETIME_MKTIME(3) β€” a Library Functions Manual page for the library libdivecomputer πŸ’…βœ¨

πŸŽ€ NAME πŸŽ€

dc_datetime_mktime β€” convert a local date and time to a timestamp. It’s giving β€œturn my broken-down clock situation into an integral timestamp” β°πŸ’–

πŸ“š LIBRARY πŸ“š

library libdivecomputer 🫢

✨ SYNOPSIS ✨

#include <libdivecomputer/datetime.h>

dc_ticks_t
dc_datetime_mktime(const dc_datetime_t *dt);

πŸ’… DESCRIPTION πŸ’…

So dc_datetime_mktime takes a broken-down local date and time created with dc_datetime_localtime(3) and converts it into an integral timestamp. That’s the whole plot, no cap πŸ“…βž‘οΈβ±οΈ

Heads up: dc_datetime_mktime may internally invoke libc’s mktime(3). Just so you know, bestie πŸ‘€

πŸ”₯ RETURN VALUES πŸ”₯

It returns the integral time-stamp, or -1 if the given date and time may not sanely be converted. So if you get -1, that date/time did not pass the vibe check πŸ˜­πŸ’€

πŸ‘€ SEE ALSO πŸ‘€

πŸ’– AUTHORS πŸ’–

The library libdivecomputer was written by Jef Driesen, jef@libdivecomputer.org. The manpages were written by Kristaps Dzonsons, kristaps@bsd.lv. iconic behavior, honestly πŸ‘‘πŸ«Ά

xoxo πŸ’– this page is from Debian, dated January 11, 2017 🌸

πŸ“¦ where this page comes from