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

Add misc\get-date.c #4554

Merged
merged 1 commit into from
Dec 3, 2024
Merged

Add misc\get-date.c #4554

merged 1 commit into from
Dec 3, 2024

Conversation

Kelimion
Copy link
Member

@Kelimion Kelimion commented Dec 3, 2024

Prints the current date as YYYYMMDD without relying on PowerShell.

Hopefully fixes #4540

Prints the current date as YYYYMMDD without relying on PowerShell.

Hopefully fixes odin-lang#4540
@Kelimion Kelimion merged commit 04e8dcc into odin-lang:master Dec 3, 2024
7 checks passed
@Kelimion Kelimion deleted the get-date branch December 3, 2024 11:49
@LaurentOngaro
Copy link

As an image is better than 1000 words !!

image

Well done !
Thanks

@Kelimion
Copy link
Member Author

Kelimion commented Dec 3, 2024

Huzzah!


int main(int arg_count, char const **arg_ptr) {
time_t t = time(NULL);
struct tm* now = localtime(&t);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure you want that in local time?

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

Successfully merging this pull request may close these issues.

Error while building on Windows 11 ("misc\odin.rc(41) : error RC2104 : undefined keyword or key name: All")
3 participants