/// <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));
 }
Exemple #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));
 }
 /// <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));
 }