[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'db' (#fcl)

# TTimeField

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Field class for time values

## Declaration

Source position: db.pas line 714

`type TTimeField = class(TDateTimeField)`
`protected`
`procedure SetAsString(); override;`
`public`
`constructor Create(); override;` |  | Create a new instance of a TTimeField class.
`end;`

## Inheritance

`TTimeField` |  | Field class for time values
`TDateTimeField` |  | Field class for date/time/Datetime values
`TField` |  | Provide access to the contents of a single field in a record
`TComponent,IUnknown,IInterfaceComponentReference`
`TPersistent`
`TObject`

## Description

TimeField is the class used when a dataset must manage data of type time. (TField.DataType equals ftTime). It initializes some of the properties of the TField class to be able to work with time fields.

It should never be necessary to create an instance of TTimeField manually, a field of this class will be instantiated automatically for each time field when a dataset is opened.

## See also

TDataset |  | Base class for records-based data-access
TField |  | Provide access to the contents of a single field in a record
TDateTimeField |  | Field class for date/time/Datetime values
TDateField |  | Field class for date values

The latest version of this document can be found at lazarus-ccr.sourceforge.net .