-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added new methods that are also present on `time.Time{}`: `Compare()`, `ISOWeek()`, `Weekday()`, `GoString()`, `UnmarshalText()`, `MarshalText()` - Added other new method: `MonthStart()` (goes with `MonthEnd()`) - Allow setting **ALL** fields in `time.Date()` via `ConvertConfig{}` (new options + fields for hour, minute, second, nanosecond) - Stop handling `nil` pointer / allowing pointer receiver in `String()` (matches `time.Time{}.String()` and lots of other types) - Rearrange code and tests by logical grouping (e.g. Add + Sub together) - Use "direct" implementation for `AddYears()` and `AddYearsStdlib()` - Update `README.md` with examples and context about `pgtype.Date` - This is a "sync" PR (from internal an codebase to this one)
- Loading branch information
Danny Hermes
authored
Feb 29, 2024
1 parent
ef655e9
commit 053680b
Showing
7 changed files
with
658 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.