# Using timelib functions shipped with headers

- Thread: https://externals.io/message/114042
- Original archive: https://news-web.php.net/php.internals/114042
- Started by Marco Sirabella on 2021-04-12T18:21:22+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #114042 — Marco Sirabella — 2021-04-12T18:21:22+00:00

URL: https://externals.io/message/114042#114042

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

---

## #114046 — Marco Sirabella — 2021-04-13T08:13:41+00:00

URL: https://externals.io/message/114042#114046 · In reply to: #114042


