Skip to content

Commit

Permalink
Merge pull request #13 from oliver-hohn/abbreviate-quarters
Browse files Browse the repository at this point in the history
Abbreviate quarters in organized file output
  • Loading branch information
oliver-hohn authored Dec 26, 2020
2 parents 24c2d22 + bb30764 commit 3b0d365
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions organizemyfiles/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ func (f *File) GetQuarter() string {

switch quarterIndex := f.CreatedAt.Month() / 3; quarterIndex {
case 0:
return "jan_to_march"
return "00_jan_to_mar"
case 1:
return "april_to_june"
return "01_apr_to_jun"
case 2:
return "july_to_september"
return "02_jul_to_sep"
case 3:
return "october_to_december"
return "03_oct_to_dec"
default:
panic(fmt.Errorf("invalid quarter index: %d", quarterIndex))
}
Expand Down

0 comments on commit 3b0d365

Please sign in to comment.