Hacker News new | past | comments | ask | show | jobs | submit login

gmtime is just not thread-safe that's all, since it returns a static structure; gmtime_r is not banned.



Thanks, I am now a decade out of the C game and I was wracking my brain on what the problem with gmtime would be. My best guess was dodgy is_dst portability /shrug


Yeah, found this which explained it for me :)

https://lgtm.com/rules/2154840805/




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: