001/**
002 *
003 * Copyright (c) 2014, the Railo Company Ltd. All rights reserved.
004 *
005 * This library is free software; you can redistribute it and/or
006 * modify it under the terms of the GNU Lesser General Public
007 * License as published by the Free Software Foundation; either 
008 * version 2.1 of the License, or (at your option) any later version.
009 * 
010 * This library is distributed in the hope that it will be useful,
011 * but WITHOUT ANY WARRANTY; without even the implied warranty of
012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
013 * Lesser General Public License for more details.
014 * 
015 * You should have received a copy of the GNU Lesser General Public 
016 * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
017 * 
018 **/
019package lucee.runtime.type.dt;
020
021import java.io.Serializable;
022
023import lucee.runtime.dump.Dumpable;
024import lucee.runtime.op.Castable;
025
026/**
027 * defines a time span 
028 */
029public interface TimeSpan extends Castable,Dumpable,Serializable  {
030
031    /**
032     * @return returns the timespan in milliseconds
033     */
034    public abstract long getMillis();
035
036    /**
037     * @return returns the timespan in seconds
038     */
039    public abstract long getSeconds();
040
041    /**
042     * @return Returns the day value.
043     */
044    public abstract int getDay();
045
046    /**
047     * @return Returns the hour value.
048     */
049    public abstract int getHour();
050
051    /**
052     * @return Returns the minute value.
053     */
054    public abstract int getMinute();
055
056    /**
057     * @return Returns the second value.
058     */
059    public abstract int getSecond();
060
061}