Lstimeformat - MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Reference

Cfml language reference
Table of Contents

Advertisement

Chapter 2: ColdFusion Functions

LSTimeFormat

Returns a custom-formatted time value using the locale convention.
See also LSParseDateTime.
Syntax
LSTimeFormat( time [, mask ])
string
Any date/time value or string convertible to a time value.
mask
A set of masking characters determining the format:
h
hh
H
HH
m
mm
s
ss
t
locales.
tt
Usage
When passing date/time value as a string, make sure it is enclosed in quotes.
Otherwise, it is interpreted as a number representation of a date/time object returning
undesired results.
Examples
<!--- This shows LSTimeFormat --->
<HTML>
<HEAD>
<TITLE>LSTimeFormat Example</TITLE>
</HEAD>
<BODY>
<H3>LSTimeFormat Example</H3>
<P>LSTimeFormat returns a time value using
the locale convention.
<!--- loop through a list of possible locales and
show time values
<CFLOOP LIST="#Server.Coldfusion.SupportedLocales#"
— Hours with no leading zero for single-digit hours. (Uses a 12-hour clock.)
— Hours with a leading zero for single-digit hours. (Uses a 12-hour clock.)
— Hours with no leading zero for single-digit hours. (Uses a 24-hour clock.)
— Hours with a leading zero for single-digit hours. (Uses a 24-hour clock.)
— Minutes with no leading zero for single-digit minutes
— Minutes with a leading zero for single-digit minutes
— Seconds with no leading zero for single-digit seconds
— Seconds with a leading zero for single-digit seconds
— Single-character time marker string, such as A or P . Ignored by some
— Multiple-character time marker string, such as AM or PM
--->
461

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Coldfusion 4.5

Table of Contents