Data.SqlTimSt.VarSQLTimeStampOffsetCreate

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function VarSQLTimeStampOffsetCreate(const AValue: string): Variant;
function VarSQLTimeStampOffsetCreate(const AValue: string; const FormatSettings: TFormatSettings): Variant;
function VarSQLTimeStampOffsetCreate(const AValue: TDateTime): Variant;
procedure VarSQLTimeStampOffsetCreate(var aDest: Variant; const ASQLTimeStampOffset: TSQLTimeStampOffset);
function VarSQLTimeStampOffsetCreate: Variant;
function VarSQLTimeStampOffsetCreate(const ASQLTimeStampOffset: TSQLTimeStampOffset): Variant;

C++

extern DELPHI_PACKAGE System::Variant __fastcall VarSQLTimeStampOffsetCreate(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 TSQLTimeStampOffset value.

Call VarSQLTimeStampOffsetCreate to obtain a Variant that stores its value as a TSQLTimeStampOffset value.

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

Using the second syntax without any arguments), the returned Variant has a value of NullSQLTimeStampOffset.

The returned Variant has the same value as the given AValue or ASQLTimeStampOffset arguments.

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