001    /**
002     * Implements the CFML Function createtimespan
003     */
004    package railo.runtime.functions.dateTime;
005    
006    import railo.runtime.PageContext;
007    import railo.runtime.ext.function.Function;
008    import railo.runtime.type.dt.TimeSpan;
009    import railo.runtime.type.dt.TimeSpanImpl;
010    
011    public final class CreateTimeSpan implements Function {
012            public static TimeSpan call(PageContext pc , double day, double hour, double minute, double second) {
013                    return new TimeSpanImpl((int)day,(int)hour,(int)minute,(int)second);
014            }
015            
016            public static TimeSpan call(PageContext pc , double day, double hour, double minute, double second,double millisecond) {
017                    return new TimeSpanImpl((int)day,(int)hour,(int)minute,(int)second,(int)millisecond);
018            }
019    }