Issue 125196
Summary [libc] Implement 64bit `time_t` and `localtime`
Labels libc
Assignees
Reporter zimirza
    It might be good to implement a 64bit `time_t` and `localtime`/`localtime_s`. According to https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/localtime-localtime32-localtime64, these are defined as:

```c
struct tm *localtime( const time_t *sourceTime );
struct tm *_localtime32( const __time32_t *sourceTime );
struct tm *_localtime64( const __time64_t *sourceTime );
```

It would be good to be consistent for compatibility reasons.

This should be implemented after https://github.com/llvm/llvm-project/pull/110363 gets merged and https://github.com/llvm/llvm-project/issues/107597 is completed.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to