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
CultureName The CultureName property sets abbreviated language name.
DateOrder The DateOrder property sets date creation order.
DateSeparator The DateSeparator property sets date separator.
DayNames The DayNames property sets an array of weekday full names.
DecimalSeparator The DecimalSeparator property sets decimal separator.
DisplayName The DisplayName property sets full name of the language.
GroupSeparator The GroupSeparator property sets group separator.
HalfYearNames The HalfYearNames property determines array of half-year names.
Hour24Mode The Hour24Mode property sets 24-hour time display mode.
IsSundayFirst The IsSundayFirst property determines whether Sunday is the first day in a week.
LCID The LCID property sets language code.
MonthNames The MonthNames property sets array of full names for all months in the year.
QuarterNames The QuarterNames property sets array of names for quarters in the year.
ShortDayNames The ShortDayNames property sets array of abbreviated names for days of the week.
ShortMonthNames The ShortMonthNames property sets array of names for all months in the year.
TimeAmPm The TimeAmPm property determines postfixes used for 12-hour time display mode.
TimeSeparator The TimeSeparator property determines time separator.
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
Data The Data property associates a random object with this component.
Id The Id property sets component identifier.
Settings The Settings property sets component parameters.

Methods inherited from the Object class

  Method name Brief description
clone The clone method creates a copy of object. It is not implemented in PP.Ui.Control.
dispose The dispose method deletes the component.
getTypeName The getTypeName method returns the name of the object type without the namespace, to which it belongs.

See also:

PP