Skip to main content
Version: 2.14.1

Humanizer.Localisation.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

System.String

ResourceKeys.DateHumanize.Now Field

Resource key for Now.

public const string Now = "DateHumanize_Now";

Field Value

System.String

Methods

ResourceKeys.DateHumanize.GetResourceKey(TimeUnit, Tense, int) Method

Generates Resource Keys accordning to convention.

public static string GetResourceKey(Humanizer.Localisation.TimeUnit timeUnit, Humanizer.Localisation.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