Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transform date::local_seconds and timezone offset to struct tm #819

Closed
iFuSiiOnzZ opened this issue Mar 6, 2024 · 1 comment
Closed

Comments

@iFuSiiOnzZ
Copy link

iFuSiiOnzZ commented Mar 6, 2024

Hi,

I was looking at the documentation but there seems to be no conversion between the date::local_senconds and C data structure tm. Using std::localtime(local_time.time_since_epoch().count()) is not working properly. Any suggestions on how to achieve it?

Thank you!

@HowardHinnant
Copy link
Owner

Here's a brief article on interfacing with the C API: https://github.com/HowardHinnant/date/wiki/Examples-and-Recipes#Ccompatiblity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants