Browse files

Differentiate compact representation of month from minute.

Previously, they were both "m", making it hard to read them.

Now, minutes are represented as "m" while months are "mo".
  • Loading branch information...
dmitshur committed Nov 30, 2017
1 parent 1bd7a2a commit 47ffd3f7f882d5b1ee59a2d066e4399a80f9735a
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.go
@@ -510,7 +510,7 @@ var compactMagnitudes = []humanize.RelTimeMagnitude{
{D: humanize.Day, Format: "%dh", DivBy: time.Hour},
{D: humanize.Week, Format: "%dd", DivBy: humanize.Day},
{D: humanize.Month, Format: "%dw", DivBy: humanize.Week},
{D: humanize.Year, Format: "%dm", DivBy: humanize.Month},
{D: humanize.Year, Format: "%dmo", DivBy: humanize.Month},
{D: math.MaxInt64, Format: "%dy", DivBy: humanize.Year},

0 comments on commit 47ffd3f

Please sign in to comment.