/// <summary>
 /// Calculates the distance of time in words between two provided dates
 /// </summary>
 public string Humanize(DateTimeOffset input, DateTimeOffset comparisonBase, CultureInfo culture, ShowQuantityAs showQuantityAs)
 {
     return(DateTimeHumanizeAlgorithms.DefaultHumanize(input.UtcDateTime, comparisonBase.UtcDateTime, culture, showQuantityAs));
 }
Esempio n. 2
0
 /// <summary>
 /// Calculates the distance of time in words between two provided dates
 /// </summary>
 public string Humanize(DateTime input, DateTime comparisonBase, CultureInfo culture, DateTimeExpressionProvider dateTimeTextProvider)
 {
     return(DateTimeHumanizeAlgorithms.DefaultHumanize(input, comparisonBase, culture, dateTimeTextProvider));
 }
 // 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));
 }
Esempio n. 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));
 }
 /// <summary>
 /// Calculates the distance of time in words between two provided dates
 /// </summary>
 public string Humanize(DateTime input, DateTime comparisonBase, CultureInfo culture)
 {
     return(DateTimeHumanizeAlgorithms.DefaultHumanize(input, comparisonBase, culture));
 }
Esempio n. 6
0
 /// <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)
 {
     return(DateTimeHumanizeAlgorithms.PrecisionHumanize(input.UtcDateTime, comparisonBase.UtcDateTime, _precision, culture));
 }
 /// <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, ShowQuantityAs showQuantityAs)
 {
     return(DateTimeHumanizeAlgorithms.PrecisionHumanize(input, comparisonBase, _precision, culture, showQuantityAs));
 }