
373
DEVELOPING
COLDFUSION 9 APPLICATIONS
Developing CFML Applications
Las
t
upda
te
d 8/5/2010
Note:
Many functions that have names starting with
LS
have corresponding functions that do not have this prefix:
DateFormat
,
IsDate
,
IsNumeric
,
NumberFormat
,
ParseDateTime
, and
TimeFormat
. These function use English (US)
locale rules.
If you do not precede calls to the LS functions with a call to the
SetLocale
function, they use the locale defined by the
JVM, which typically is the locale of the operating system.
The following example uses the
LSDateFormat
function to display the current date in the format for each locale
supported by ColdFusion:
LSEuroCurrencyFormat
Converts a number into a string in a locale-specific currency format. Formats using the euro for all
countries that use euro as the currency.
LSIsCurrency
Determines whether a string is a valid representation of a currency amount in the current locale.
LSIsDate
Determines whether a string is a valid representation of a date/time value in the current locale.
LSIsNumeric
Determines whether a string is a valid representation of a number in the current locale.
LSNumberFormat
Converts a number into a string in a locale-specific numeric format.
LSParseCurrency
Converts a string that is a currency amount in the current locale into a formatted number. For
countries that use the euro, the result depends on the JVM version.
LSParseDateTime
Converts a string that is a valid date/time representation in the current locale into a date-time
object.
LSParseEuroCurrency
Converts a string that is a currency amount in the current locale into a formatted number. Requires
euro as the currency for all countries that use the euro.
LSParseNumber
Converts a string that is a valid numeric representation in the current locale into a formatted
number.
LSTimeFormat
Converts the time part of a date/time value into a string in a locale-specific date format.
SetLocale
Specifies the locale setting.
Tag or function
Use
Содержание COLDFUSION 9
Страница 1: ...Developing Applications ADOBE COLDFUSION 9...