Show: Delphi C++
Display Preferences

Data.SqlTimSt.TSQLTimeStamp

From XE2 API Documentation
Jump to: navigation, search

Delphi

  TSQLTimeStamp = record
    Year: Word;
    Month: Word;
    Day: Word;
    Hour: Word;
    Minute: Word;
    Second: Word;
    Fractions: LongWord;
  end;

C++

struct DECLSPEC_DRECORD TSQLTimeStamp{
public:
System::Word Year;
System::Word Month;
System::Word Day;
System::Word Hour;
System::Word Minute;
System::Word Second;
unsigned Fractions;
};

Properties

Type Visibility Source Unit Parent
struct
class
public
Data.SqlTimSt.pas
Data.SqlTimSt.hpp
Data.SqlTimSt Data.SqlTimSt

Description

TSQLTimeStamp represents time and date values with a high degree of accuracy.

The dbExpress database drivers use TSQLTimeStamp when working with date and time information. Year specifies a year from 1 to 9999. Month specifies a month from 1 to 12. Day specifies a day of the month, from 1 to 28, 29, 30, or 31, depending on the Month value. Hour specifies the hour from 0 to 23. Minute and Second can range from 0 to 59. Fractions specifies milliseconds from 0 to 999.

You can create a Variant that represents a TSQLTimeStamp value using the VarSQLTimeStampCreate function. In fact, the easiest way to manipulate TSQLTimeStamp values is to create such a Variant and use the built-in operators provided by the Variant type.

See Also

Personal tools
Previous Versions
Translations