DC_PARSER_GET_DATETIME(3)
π DC_PARSER_GET_DATETIME(3) π
okay so bestie, welcome to the manual page for dc_parser_get_datetime β it lives in the Library Functions Manual section, and it's brought to you by the fine folks behind the libdivecomputer library, no cap π«Ά
πΈ NAME πΈ
dc_parser_get_datetime β the girl whose whole job is pulling the date and time out of a parsed dive β¨
π LIBRARY π
she's from the library libdivecomputer, periodt π
π¦ SYNOPSIS π¦
#include <libdivecomputer/parser.h>
dc_status_t
dc_parser_get_datetime(dc_parser_t *parser, dc_datetime_t *datetime);
β¨ DESCRIPTION β¨
So basically, this function extracts the date and time of a dive, fr fr π°οΈ You hand her a parser that you've already initialised with dc_parser_new(3) beforehand (like, don't skip that step, bestie), and she gives you the broken-down time-stamp of the dive β in the local time of the dive. That's the vibe. That's the whole assignment. π
Lowkey important detail: the dc_parser_get_datetime function may internally invoke dc_datetime_gmtime(3) or dc_datetime_localtime(3). iykyk π
π RETURN VALUES π
DC_STATUS_SUCCESSβ slay, the date and time were retrieved πDC_STATUS_UNSUPPORTEDβ okay so the device just doesn't support date and time, it's giving "not my era" π- other error messages β if something else goes wrong on further failure π
π₯ SEE ALSO π₯
all of them iconic, all of them worth the read π
π AUTHORS π
The library libdivecomputer was written by Jef Driesen, jef@libdivecomputer.org β king behavior honestly. And the manpages were written by Kristaps Dzonsons, kristaps@bsd.lv. absolute legends both π«Ά
and that's the whole page, bestie! π this cutie came to you from the Debian crew, dated January 5, 2017, and her header/footer energy is DC_PARSER_GET_DATETIME(3) all day long. mwah πβ¨
π¦ 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