railo.runtime.format
Class TimeFormat

java.lang.Object
  extended by railo.runtime.format.BaseFormat
      extended by railo.runtime.format.TimeFormat
All Implemented Interfaces:
Format

public final class TimeFormat
extends BaseFormat
implements Format


Constructor Summary
TimeFormat(Locale locale)
          constructor of the class
 
Method Summary
 String format(Date date)
          formats a date to a cfml date format (short)
 String format(Date date, String mask)
          formats a date to a cfml date format
 String format(DateTime date, String mask, TimeZone tz)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeFormat

public TimeFormat(Locale locale)
constructor of the class

Parameters:
locale -
Method Detail

format

public String format(Date date)
formats a date to a cfml date format (short)

Specified by:
format in interface Format
Parameters:
date -
Returns:
formated date

format

public String format(Date date,
                     String mask)
formats a date to a cfml date format

Specified by:
format in interface Format
Parameters:
date -
mask -
Returns:
formated date

format

public String format(DateTime date,
                     String mask,
                     TimeZone tz)


Copyright © 2012 Railo