org.knime.core.data.date
Interface DateAndTimeValue

All Superinterfaces:
DataValue
All Known Implementing Classes:
DateAndTimeCell

public interface DateAndTimeValue
extends DataValue

Interface supporting the representation of time and date independent of the user's time zone and location. Times in KNIME are always UTC times!

Author:
Fabian Dill, KNIME.com, Zurich, Switzerland

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.knime.core.data.DataValue
DataValue.UtilityFactory
 
Field Summary
static DateAndTimeUtility UTILITY
          Utility implementation for timestamp values.
 
Method Summary
 int getDayOfMonth()
           
 int getHourOfDay()
           
 int getMillis()
           
 int getMinute()
           
 int getMonth()
           
 int getSecond()
           
 Calendar getUTCCalendarClone()
           
 long getUTCTimeInMillis()
           
 int getYear()
           
 boolean hasDate()
           
 boolean hasMillis()
           
 boolean hasTime()
           
 

Field Detail

UTILITY

static final DateAndTimeUtility UTILITY
Utility implementation for timestamp values.

Method Detail

getYear

int getYear()
Returns:
the year of this date
See Also:
Calendar.YEAR

getMonth

int getMonth()
Returns:
the month of the year, **STARTING WITH 0** for the first month
See Also:
Calendar.MONTH

getDayOfMonth

int getDayOfMonth()
Returns:
the day of the month in the interval 1-31
See Also:
Calendar.DAY_OF_MONTH

getHourOfDay

int getHourOfDay()
Returns:
the hour of day represented in the interval 0-23
See Also:
Calendar.HOUR_OF_DAY

getMinute

int getMinute()
Returns:
the minute in the interval 0-59
See Also:
Calendar.MINUTE

getSecond

int getSecond()
Returns:
the second in the interval 0-59
See Also:
Calendar.SECOND

getMillis

int getMillis()
Returns:
the milliseconds in the interval 0-999
See Also:
Calendar.MILLISECOND

hasDate

boolean hasDate()
Returns:
true if the date is available and it is legal to access the date fields (year, month, day)

hasTime

boolean hasTime()
Returns:
true if the time is available and it is legal to access the time fields (hour, minute, second)

hasMillis

boolean hasMillis()
Returns:
true if the milliseconds are available and it is legal to access the milliseconds

getUTCTimeInMillis

long getUTCTimeInMillis()
Returns:
the milliseconds in UTC time
See Also:
Calendar.getTimeInMillis()

getUTCCalendarClone

Calendar getUTCCalendarClone()
Returns:
a clone of the underlying UTC calendar


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.