Data.SqlTimSt.VarSQLTimeStampCreate

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function VarSQLTimeStampCreate(const AValue: string): Variant;
function VarSQLTimeStampCreate(const AValue: string; const FormatSettings: TFormatSettings): Variant;
function VarSQLTimeStampCreate(const AValue: TDateTime): Variant;
procedure VarSQLTimeStampCreate(var aDest: Variant; const ASQLTimeStamp: TSQLTimeStamp);
function VarSQLTimeStampCreate: Variant;
function VarSQLTimeStampCreate(const ASQLTimeStamp: TSQLTimeStamp): Variant;

C++

extern DELPHI_PACKAGE System::Variant __fastcall VarSQLTimeStampCreate(const System::UnicodeString AValue)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
Data.SqlTimSt.pas
Data.SqlTimSt.hpp
Data.SqlTimSt Data.SqlTimSt

Description

Creates a new Variant that stores its value internally as a TSQLTimeStamp value.

Call VarSQLTimeStampCreate to obtain a Variant that stores its value as a TSQLTimeStamp value.

Using the first syntax, the Variant returned as aDest has the same value as ASQLTimeStamp.

Using the second syntax (passing no arguments), the returned Variant has a value of NullSQLTimeStamp.

Using the third syntax, the returned Variant has the same value as ASQLTimeStamp.

Using the fourth syntax, the returned Variant represents the same date and time as the TDateTime value AValue.

The FormatSettings parameter can be used to specify the alternate formatting setting to use with the newly created Variant. This allows the manipulation of date/time data through string representations that have a locale dependency.

See Also