Skip to content

Commit

Permalink
add clarifying comment
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Miller <[email protected]>
  • Loading branch information
Kevin Miller committed Aug 14, 2023
1 parent 3c34a1a commit 1db7cd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ymdflag.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func YMDToTime(yyyymmdd int, loc *time.Location) time.Time {
return time.Date(year, time.Month(month), day, 0, 0, 0, 0, loc)
}

// TimeToYMD returns the YYYYMMDD for the Time in its location.
// TimeToYMD returns the YYYYMMDD for the time.Time in that Time's location.
// A zero time returns a 0 value.
func TimeToYMD(t time.Time) int {
if t.IsZero() {
Expand Down

0 comments on commit 1db7cd0

Please sign in to comment.