CultureInfo

Namespace: PP;

Inheritance hierarchy

Object

CultureInfo

Description

The CultureInfo class determines language and regional parameters.

Syntax

PP.initClass(PP.CultureInfo, PP.Object, "PP.CultureInfo");

Constructor

  Constructor name Brief description
CultureInfo The CultureInfo constructor creates an instance of the CultureInfo class.

Properties

  Property name Brief description
property_image.gif CultureName The CultureName property sets abbreviated language name.
property_image.gif DateOrder The DateOrder property sets date creation order.
property_image.gif DateSeparator The DateSeparator property sets date separator.
property_image.gif DayNames The DayNames property sets an array of weekday full names.
property_image.gif DecimalSeparator The DecimalSeparator property sets decimal separator.
property_image.gif DisplayName The DisplayName property sets full name of the language.
property_image.gif GroupSeparator The GroupSeparator property sets group separator.
property_image.gif HalfYearNames The HalfYearNames property determines array of half-year names.
property_image.gif Hour24Mode The Hour24Mode property sets 24-hour time display mode.
property_image.gif IsSundayFirst The IsSundayFirst property determines whether Sunday is the first day in a week.
property_image.gif LCID The LCID property sets language code.
property_image.gif MonthNames The MonthNames property sets array of full names for all months in the year.
property_image.gif QuarterNames The QuarterNames property sets array of names for quarters in the year.
property_image.gif ShortDayNames The ShortDayNames property sets array of abbreviated names for days of the week.
property_image.gif ShortMonthNames The ShortMonthNames property sets array of names for all months in the year.
property_image.gif TimeAmPm The TimeAmPm property determines postfixes used for 12-hour time display mode.
property_image.gif TimeSeparator The TimeSeparator property determines time separator.
property_image.gif WEEKMS The WEEKMS property specifies the number of milliseconds in a week.

Methods

  Method name Brief description
dateToStr The dateToStr method converts date to a string in accordance with the current culture.
getDaysInMonth The getDaysInMonth method returns the number of days in the specified month of the specified year.
getFirstWeekDate The getFirstWeekDate method returns date of the first day in the week with the specified number in the specified year.
getLastWeekDate The getLastWeekDate method returns date of the last day in the week with the specified number in the specified year.
getTimezoneOffsetInMsec The getTimezoneOffsetInMsec method returns offset of the current time zone in milliseconds.
getWeekNumber The getWeekNumber method returns number of the week that includes the specified date.
numberToFormattedString The numberToFormattedString method returns a string that contains a number formatted considering separators.
to12hMode The to12hMode method converts the specified hour from 24-hour format to 12-hour one.
to24hMode The to24hMode method converts the specified hour from 12-hour format to 24-hour one.
validateNumber The validateNumber method converts the specified string to a number, if it is possible.

Properties inherited from the Object class

  Property name Brief description

Id

The Id property determines a repository object identifier.

Methods inherited from the Object class

  Method name Brief description
clone The clone method creates an object copy.
dispose The dispose method deletes the component.
getHashCode The getHashCode method returns hash code of repository object.
getSettings The getSettings method returns repository object settings.
getTypeName The getTypeName method returns the name of the object type without the namespace, to which it belongs.
isEqual The isEqual method determines whether the specified object is equal to the current repository object.
isLive The isLive method determines validity of repository object.
removeAllEvents The removeAllEvents method removes all object event handlers by the specified context.
setSettings The setSettings method determines repository object settings.
defineProps The defineProps method creates get and set methods from name array for the specified class.
keys The keys method returns array of methods and properties names for the specified object.

See also:

PP