Humanizer.ResourceKeys.DateHumanize
ResourceKeys.DateHumanize Class
Encapsulates the logic required to get the resource keys for DateTime.Humanize
public static class ResourceKeys.DateHumanize
Inheritance System.Object → DateHumanize
Fields
ResourceKeys.DateHumanize.Never Field
Resource key for Never.
public const string Never = "DateHumanize_Never";
Field Value
ResourceKeys.DateHumanize.Now Field
Resource key for Now.
public const string Now = "DateHumanize_Now";
Field Value
Methods
ResourceKeys.DateHumanize.GetResourceKey(TimeUnit, Tense, int) Method
Generates Resource Keys according to convention.
public static string GetResourceKey(Humanizer.TimeUnit timeUnit, Humanizer.Tense timeUnitTense, int count=1);
Parameters
timeUnit TimeUnit
Time unit
timeUnitTense Tense
Is time unit in future or past
count System.Int32
Number of units, default is One.
Returns
System.String
Resource key, like DateHumanize_SingleMinuteAgo