001 package railo.runtime.type.dt; 002 003 import java.io.Serializable; 004 005 import railo.runtime.dump.Dumpable; 006 import railo.runtime.op.Castable; 007 008 /** 009 * defines a time span 010 */ 011 public interface TimeSpan extends Castable,Dumpable,Serializable { 012 013 /** 014 * @return returns the timespan in milliseconds 015 */ 016 public abstract long getMillis(); 017 018 /** 019 * @return returns the timespan in seconds 020 */ 021 public abstract long getSeconds(); 022 023 /** 024 * @return Returns the day value. 025 */ 026 public abstract int getDay(); 027 028 /** 029 * @return Returns the hour value. 030 */ 031 public abstract int getHour(); 032 033 /** 034 * @return Returns the minute value. 035 */ 036 public abstract int getMinute(); 037 038 /** 039 * @return Returns the second value. 040 */ 041 public abstract int getSecond(); 042 043 }