1DC_PARSER_GET_DATETIM... BSD Library Functions Manual DC_PARSER_GET_DATETIM...
2
4 dc_parser_get_datetime — extract the date and time from a parsed dive
5
7 library “libdivecomputer”
8
10 #include <libdivecomputer/parser.h>
11
12 dc_status_t
13 dc_parser_get_datetime(dc_parser_t *parser, dc_datetime_t *datetime);
14
16 Extract the date and time of a dive, parser, previously initialised with
17 dc_parser_set_data(3). This returns the broken-down time-stamp of the
18 dive in the local time of the dive.
19
20 The dc_parser_get_datetime function may internally invoke
21 dc_datetime_gmtime(3) or dc_datetime_localtime(3).
22
24 Returns DC_STATUS_SUCCESS if the date and time were retrieved,
25 DC_STATUS_UNSUPPORTED if the date and time are not supported by the
26 device, or other error messages on further failure.
27
29 dc_datetime_gmtime(3), dc_datetime_localtime(3), dc_parser_set_data(3)
30
32 The library “libdivecomputer” library was written by Jef Driesen,
33 jef@libdivecomputer.org. The manpages were written by
34 Kristaps Dzonsons, kristaps@bsd.lv.
35
36BSD January 5, 2017 BSD