// Token: 0x06000255 RID: 597 RVA: 0x0000D66F File Offset: 0x0000B86F
 public string Humanize(DateTime input, DateTime comparisonBase, CultureInfo culture)
 {
     return(DateTimeHumanizeAlgorithms.PrecisionHumanize(input, comparisonBase, this._precision, culture));
 }
 /// <summary>
 /// Returns localized &amp; humanized distance of time between two dates; given a specific precision.
 /// </summary>
 public string Humanize(DateTimeOffset input, DateTimeOffset comparisonBase, CultureInfo culture, ShowQuantityAs showQuantityAs)
 {
     return(DateTimeHumanizeAlgorithms.PrecisionHumanize(input.UtcDateTime, comparisonBase.UtcDateTime, _precision, culture, showQuantityAs));
 }
 /// <summary>
 /// Returns localized &amp; humanized distance of time between two dates; given a specific precision.
 /// </summary>
 public string Humanize(DateTime input, DateTime comparisonBase, CultureInfo culture, DateTimeExpressionProvider dateTimeExpressionProvider)
 {
     return(DateTimeHumanizeAlgorithms.PrecisionHumanize(input, comparisonBase, _precision, culture, dateTimeExpressionProvider));
 }
Example #4
0
 /// <summary>
 /// Returns localized &amp; humanized distance of time between two dates; given a specific precision.
 /// </summary>
 public string Humanize(TimeOnly input, TimeOnly comparisonBase, CultureInfo culture)
 {
     return(DateTimeHumanizeAlgorithms.PrecisionHumanize(input, comparisonBase, _precision, culture));
 }