001    /**
002     * Implements the CFML Function dayofweekasstring
003     */
004    package railo.runtime.functions.string;
005    
006    import railo.runtime.PageContext;
007    import railo.runtime.exp.ExpressionException;
008    import railo.runtime.ext.function.Function;
009    import railo.runtime.i18n.LocaleFactory;
010    
011    public final class DayOfWeekShortAsString implements Function {
012            
013            public static String call(PageContext pc , double dow) throws ExpressionException {
014                    return DayOfWeekAsString.call(pc,dow, pc.getLocale(),false);
015            }
016            
017            public static String call(PageContext pc , double dow, String strLocale) throws ExpressionException {
018                    return DayOfWeekAsString.call(pc,dow, strLocale==null?pc.getLocale():LocaleFactory.getLocale(strLocale),false);
019            }
020            
021    }