You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Avoided adding the methods for DateTime struct due to this comment in the code -
// Note: We deliberately do not embed Date into DateTime, to avoid promoting AddDays and Sub.
Don't fully understand why we need to avoid these methods (AddDays, AddMonths, Weekday) for the struct so I can update my PR if some maintainer can confirm that it is okay to add them
Is your feature request related to a problem? Please describe.
While using Date and DateTime objects, there might be need for certain operations like -
Describe the solution you'd like
Implementing the methods for the structs
Describe alternatives you've considered
User needs to convert object in time.Time struct do the above operation and convert back to the Date struct. That is inconvenient.
Additional context
Will create a PR for this soon
The text was updated successfully, but these errors were encountered: