DC_DATETIME_MKTIME(3)
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
- 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