Skip to content

Commit

Permalink
Use 'y' instead of 'a' for TimeUnit.Year
Browse files Browse the repository at this point in the history
  • Loading branch information
hangy committed Oct 27, 2021
1 parent 630b78c commit 18138ed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion readme.md
Expand Up @@ -1119,7 +1119,7 @@ TimeUnit.Day.ToSymbol();
TimeUnit.Week.ToSymbol();
// week
TimeUnit.Year.ToSymbol();
// a
// y
```

## <a id="mix-this-into-your-framework-to-simplify-your-life">Mix this into your framework to simplify your life</a>
Expand Down
2 changes: 1 addition & 1 deletion src/Humanizer.Tests.Shared/TimeUnitToSymbolTests.cs
Expand Up @@ -15,7 +15,7 @@ public class TimeUnitToSymbolTests
[InlineData(TimeUnit.Day, "d")]
[InlineData(TimeUnit.Week, "week")]
[InlineData(TimeUnit.Month, "mo")]
[InlineData(TimeUnit.Year, "a")]
[InlineData(TimeUnit.Year, "y")]
public void ToSymbol(TimeUnit unit, string expected)
{
Assert.Equal(expected, unit.ToSymbol());
Expand Down
2 changes: 1 addition & 1 deletion src/Humanizer/Properties/Resources.resx
Expand Up @@ -733,6 +733,6 @@
<value>mo</value>
</data>
<data name="TimeUnit_Year" xml:space="preserve">
<value>a</value>
<value>y</value>
</data>
</root>

0 comments on commit 18138ed

Please sign in to comment.