Data.SqlTimSt.TryStrToSQLTimeStampOffset

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function TryStrToSQLTimeStampOffset(const S: string; var TimeStampOffset: TSQLTimeStampOffset) : Boolean;
function TryStrToSQLTimeStampOffset(const S: string; var TimeStampOffset: TSQLTimeStampOffset; const FormatSettings: TFormatSettings) : Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall TryStrToSQLTimeStampOffset(const System::UnicodeString S, TSQLTimeStampOffset &TimeStampOffset)/* overload */;

Properties

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

Description

Converts a string to a TSQLTimeStampOffset value.

Use TryStrToSQLTimeStampOffset to convert the string S to a TSQLTimeStampOffset value.

The FormatSettings parameter can be used to specify the locale formatting setting to consider during the conversion.

If S can be converted to a TSQLTimeStampOffset value, the result is returned as the TimeStampOffset parameter and TryStrToSQLTimeStampOffset returns True.

If S cannot be converted to a TSQLTimeStampOffset value, TimeStampOffset is set to NullSQLTimeStampOffset and TryStrToSQLTimeStampOffset returns False.

See Also