home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 1999 April / APC443.iso / features / grpware / coldfus / coldfusi.exe / data1.cab / Documentation / snippets / lstimeformat.cfm < prev    next >
Encoding:
Text File  |  1998-10-08  |  756 b   |  37 lines

  1. <!--- This shows LSTimeFormat --->
  2.  
  3. <HTML>
  4.  
  5. <HEAD>
  6. <TITLE>LSTimeFormat Example</TITLE>
  7. </HEAD>
  8.  
  9. <BODY>
  10.  
  11. <H3>LSTimeFormat Example</H3>
  12.  
  13. <P>LSTimeFormat returns a time value using
  14. the locale convention.  
  15.  
  16. <!--- loop through a list of possible locales and
  17. show time values  --->
  18. <CFLOOP LIST="#Server.Coldfusion.SupportedLocales#"
  19. INDEX="locale" DELIMITERS=",">
  20.     <CFSET oldlocale = SetLocale("#locale#")>
  21.  
  22.     <CFOUTPUT><P><B><I>#locale#</I></B><BR>
  23.     #LSTimeFormat("#Now()#")#<BR>
  24.     #LSTimeFormat("#Now()#", 'hh:mm:ss')#<BR>    
  25.     #LSTimeFormat("#Now()#", 'hh:mm:sst')#<BR>    
  26.     #LSTimeFormat("#Now()#", 'hh:mm:sstt')#<BR>    
  27.     #LSTimeFormat("#Now()#", 'HH:mm:ss')#<BR>    
  28.         <hr noshade>
  29.     </CFOUTPUT>
  30.  
  31. </CFLOOP>
  32.  
  33.  
  34.  
  35. </BODY>
  36. </HTML>       
  37.