Skip to content

Add FSTimeToCalendarTime function #1592

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Nintendocustom
Copy link

This adds FSTimeToCalendarTime to coreinit_Time.cpp, which is commonly used in Lego games to convert a given timestamp.
grafik
grafik

@Exzap
Copy link
Member

Exzap commented Jun 13, 2025

How accurate is this? Was this tested with anything other than Lego games?

@Nintendocustom
Copy link
Author

It should be pretty accurate. However, I don’t know of any other games that use it. In Lego City Undercover, Cemu currently passes zero as parameter, so it defaults to 1/1/1980. You can leave the PR open until some other games that use it are found.

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.

2 participants