Maps a DateTime Property to an DateTime column that only stores the Hours, Minutes, and Seconds of the DateTime as significant.

Namespace:  NHibernate.Type
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
<SerializableAttribute> _
Public Class TimeType _
	Inherits ValueTypeType _
	Implements IIdentifierType, IType, ICacheAssembler, ILiteralType
C#
[SerializableAttribute]
public class TimeType : ValueTypeType, IIdentifierType, 
	IType, ICacheAssembler, ILiteralType
Visual C++
[SerializableAttribute]
public ref class TimeType : public ValueTypeType, 
	IIdentifierType, IType, ICacheAssembler, ILiteralType
JavaScript
NHibernate.Type.TimeType = function();

Type.createClass(
	'NHibernate.Type.TimeType',
	NHibernate.Type.ValueTypeType,
	NHibernate.Type.IIdentifierType,
	NHibernate.Type.IType,
	NHibernate.Type.ICacheAssembler,
	NHibernate.Type.ILiteralType);

Remarks

This defaults the Date to "1753-01-01" - that should not matter because using this Type indicates that you don't care about the Date portion of the DateTime.

A more appropriate choice to store the duration/time is the TimeSpanType. The underlying Time tends to be handled diffently by different DataProviders.

Inheritance Hierarchy

See Also