-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
[libc][c11] implement ctime #86567
Comments
Hi! This issue may be a good introductory issue for people new to working on LLVM. If you would like to work on this issue, your first steps are:
If you have any further questions about this issue, don't hesitate to ask via a comment in the thread below. |
@llvm/issue-subscribers-good-first-issue Author: Nick Desaulniers (nickdesaulniers)
@alanzhao1 points out that quake3 uses `man 3 ctime`. We already support `asctime`; my guess is that `ctime` would be similar to implement in terms of `LIBC_NAMESPACE::time_utils` but for a different input parameter type.
|
@llvm/issue-subscribers-libc Author: Nick Desaulniers (nickdesaulniers)
@alanzhao1 points out that quake3 uses `man 3 ctime`. We already support `asctime`; my guess is that `ctime` would be similar to implement in terms of `LIBC_NAMESPACE::time_utils` but for a different input parameter type.
|
@llvm/issue-subscribers-c11 Author: Nick Desaulniers (nickdesaulniers)
@alanzhao1 points out that quake3 uses `man 3 ctime`. We already support `asctime`; my guess is that `ctime` would be similar to implement in terms of `LIBC_NAMESPACE::time_utils` but for a different input parameter type.
|
I'd like to implement this. |
Thanks @aniplcc ! |
Can I request any update on this issue? |
I'm working on it, (a bit busy with exams rn) |
Thanks for the update. Sounds good! Let me know if you need any help or reviews. |
Hello @aniplcc, are you still working on this? If not, I would be happy to take over. |
This has been up for a while. Thanks @tszhin-swe, please ping here for any questions! |
I hope it is ok if I created a pull request for this. |
Yes, I'll reassign this issue to you and review your PR soon. |
This is an implementation of `ctime` and includes `ctime_r`. According to documentation, `ctime` and `ctime_r` are defined as the following: ```c char *ctime(const time_t *timep); char *ctime_r(const time_t *restrict timep, char buf[restrict 26]); ``` closes #86567
@alanzhao1 points out that quake3 uses
man 3 ctime
. We already supportasctime
; my guess is thatctime
would be similar to implement in terms ofLIBC_NAMESPACE::time_utils
but for a different input parameter type.The text was updated successfully, but these errors were encountered: