1DC_DATETIME_MKTIME(3)    BSD Library Functions Manual    DC_DATETIME_MKTIME(3)
2

NAME

4     dc_datetime_mktime — convert an local date and time to a timestamp
5

LIBRARY

7     library “libdivecomputer”
8

SYNOPSIS

10     #include <libdivecomputer/datetime.h>
11
12     dc_ticks_t
13     dc_datetime_mktime(const dc_datetime_t *dt);
14

DESCRIPTION

16     Convert a broken-down local date and time created with
17     dc_datetime_localtime(3) into an integral timestamp.
18
19     The dc_datetime_mktime function may internally invoke libc's mktime(3).
20

RETURN VALUES

22     This returns the integral time-stamp or -1 if the given date and time may
23     not sanely be converted.
24

SEE ALSO

26     dc_datetime_gmtime(3), dc_datetime_localtime(3), dc_datetime_new(3)
27

AUTHORS

29     The library “libdivecomputer” library was written by Jef Driesen,
30     jef@libdivecomputer.org.  The manpages were written by
31     Kristaps Dzonsons, kristaps@bsd.lv.
32
33BSD                            January 11, 2017                            BSD
Impressum