Returns a custom-formatted time value using the locale convention.
LSTimeFormat(time [, mask ])
When passing date/time value as a string, enclose it in quotes. Otherwise, it is interpreted as a number representation of a date/time object.
<!--- 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 locales and show time values --->
<CFLOOP LIST = "#Server.Coldfusion.SupportedLocales#"
INDEX = "locale" DELIMITERS = ",">
<cfset oldlocale = SetLocale(locale)>
<cfoutput><P><B><I>#locale#</I></B><BR>
#LSTimeFormat(Now())#<BR>
#LSTimeFormat(Now(), 'hh:mm:ss')#<BR>
#LSTimeFormat(Now(), 'hh:mm:sst')#<BR>
#LSTimeFormat(Now(), 'hh:mm:sstt')#<BR>
#LSTimeFormat(Now(), 'HH:mm:ss')#<BR>
<Hr noshade>
</cfoutput>
</CFLOOP>
</body>
</html>