Using timelib functions shipped with headers

php.internals

Marco Sirabella

5 years ago
Hello, I am writing an extension that creates a DateTime object where I have the unix timestamp and a UTC offset in minutes. ``` timelib_set_timezone_from_offset(ret->time, gt.offset); timelib_unixtime2local(ret->time, gt.time); ``` Unfortunately, even though I can pull in the headers with `#include <ext/date/lib/timelib.h>`, it doesn't seem those symbols are defined anywhere to link: ``` $ readelf -Ws /usr/lib64/php8.0/lib64/libphp.so | grep timelib # nothing ``` Are these functions meant to be public? Can I use the headers as a public API reference, or do I need to look somewhere else to see what is exposed? Thanks for your clarifications,
-- Marco Sirabella

Marco Sirabella

5 years ago