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

Missing Time.IsZero() method? #29

Closed
huangjunwen opened this issue Apr 17, 2018 · 2 comments
Closed

Missing Time.IsZero() method? #29

huangjunwen opened this issue Apr 17, 2018 · 2 comments

Comments

@huangjunwen
Copy link

It seems that all types in null except null.Time has IsZero() method, is it intended?

@guregu
Copy link
Owner

guregu commented Aug 1, 2018

Hello, it's kind of intended because null's IsZero has a very different meaning than time.Time's IsZero. But I think I will add it for consistency. Thanks for the issue.

@guregu
Copy link
Owner

guregu commented Aug 1, 2018

Added in v3.4.0.

@guregu guregu closed this as completed Aug 1, 2018
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