Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
C# では Humanizer を使用しており、TimeSpan に含まれる月数、週数、日数、および時間数が減少する量を知る必要があります。基本的に、減少する単位でのタイムスパンの期間。
例えば:
var z = myTimeSpan.Humanize(???); I would like z would be "3 Months, 2 Weeks, 3 Days, 4 Hours"