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

Alternative solution for Q33 #213

Open
AloofAli opened this issue Sep 12, 2024 · 1 comment
Open

Alternative solution for Q33 #213

AloofAli opened this issue Sep 12, 2024 · 1 comment

Comments

@AloofAli
Copy link

Hello,

As an alternative answer to Q33:

yesterday = np.datetime64('today') - 1
today     = np.datetime64('today')
tomorrow  = np.datetime64('today') + 1
print(yesterday, today, tomorrow)
@rougier
Copy link
Owner

rougier commented Oct 21, 2024

Thanks. You're right but your solution hides the usage of timedelta64 that also offer the possibilityto subract hours, week or month (for example).

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

No branches or pull requests

2 participants