Class CultureInfo

Represents a culture definition that can be applied to objects that accept a culture-related setting.

see

{@link http://msdn.microsoft.com/en-us/library/bb384004(v=vs.100).aspx}

Index

Constructor methods

Properties

Constructor methods

constructor(name: string, numberFormat: string, dateTimeFormat: string): CultureInfo

Initializes a new instance of the Sys.CultureInfo class.

Parameters

  • name: string
          The culture value (locale) that represents a language and region.
    
  • numberFormat: string
          A culture-sensitive numeric formatting string.
    
  • dateTimeFormat: string
          A culture-sensitive date formatting string.
    

Returns

CultureInfo

Properties

public static CurrentCulture: CultureInfo

Gets the globalization values of the current culture as sent by the server. This member is static and can be invoked without creating an instance of the class. The CurrentCulture field contains the following fields associated with the current culture: name, dateTimeFormat, and numberFormat.

returns

A Sys.CultureInfo object.

public static InvariantCulture: CultureInfo

Gets the globalization values of the invariant culture as sent by the server. This member is static and can be invoked without creating an instance of the class. The InvariantCulture field contains the following fields associated with the invariant (culture-independent) culture: name, dateTimeFormat, and numberFormat.

returns

A CultureInfo object.

public dateTimeFormat: Array<string>

Gets an object that contains an array of culture-sensitive formatting and parsing string values that can be applied to Date type extensions. Use the dateTimeFormat field to retrieve an object that contains an array of formatting strings that are based on the current culture or on the invariant culture. Each formatting string can be used to specify how to format Date type extensions.

returns

An object that contains an array of culture-sensitive formatting strings.

public name: string

Gets the culture value (locale) that represents a language and region.

returns

The culture value (locale) that represents a language and region.

public numberFormat: Array<string>

Gets an object that contains an array of culture-sensitive formatting and parsing strings values that can be applied to Number type extensions. Use the numberFormat field to retrieve an object that contains an array of formatting strings that are based on the current culture or on the invariant culture. Each formatting string can be used to specify how to format Number type extensions.

returns

An object that contains an array of culture-sensitive formatting strings.