Reputation: 2444
Does golang's time package (or any other library) support the concept of a local date?
By local date, I'm referring to the concept supported by joda time, which is a date without a time or timezone.
Upvotes: 3
Views: 1647
Reputation: 14089
The package you refer to uses UTC :
This chronology will be set internally to be in the UTC time zone for all calculations.
You can simply get the UTC time using the time
package and do calculations on that.
Upvotes: 1