// Token: 0x060004E1 RID: 1249 RVA: 0x00012DF4 File Offset: 0x00010FF4 public static string GetResourceKey(TimeUnit unit, int count = 1) { ResourceKeys.ValidateRange(count); if (count == 0) { return("TimeSpanHumanize_Zero"); } return("TimeSpanHumanize_{0}{1}{2}".FormatWith(new object[] { (count == 1) ? "Single" : "Multiple", unit, (count == 1) ? "" : "s" })); }
// Token: 0x060004E0 RID: 1248 RVA: 0x00012D84 File Offset: 0x00010F84 public static string GetResourceKey(TimeUnit timeUnit, Tense timeUnitTense, int count = 1) { ResourceKeys.ValidateRange(count); if (count == 0) { return("DateHumanize_Now"); } string singularity = (count == 1) ? "Single" : "Multiple"; string tense = (timeUnitTense == Tense.Future) ? "FromNow" : "Ago"; string unit = timeUnit.ToString().ToQuantity(count, ShowQuantityAs.None); return("DateHumanize_{0}{1}{2}".FormatWith(new object[] { singularity, unit, tense })); }