Data.SqlTimSt.StrToSQLTimeStampOffset
| [–] Properties | |
|---|---|
| Type: function | |
| Visibility: public | |
| Source: Data.SqlTimSt.pas Data.SqlTimSt.hpp
| |
| Unit: Data.SqlTimSt | |
| Parent: Data.SqlTimSt | |
Delphi
function StrToSQLTimeStampOffset(const S: string): TSQLTimeStampOffset;
function StrToSQLTimeStampOffset(const S: string; const FormatSettings: TFormatSettings): TSQLTimeStampOffset;
C++
extern DELPHI_PACKAGE TSQLTimeStampOffset __fastcall StrToSQLTimeStampOffset(const System::UnicodeString S)/* overload */;
Description
Converts a string to a TSQLTimeStampOffset value.
Use StrToSQLTimeStampOffset to convert the string S to a TSQLTimeStampOffset value. If S does not represent a valid date-time value, StrToSQLTimeStampOffset raises an EConvertError exception.
The FormatSettings parameter can be used to specify the locale formatting setting to consider during the conversion.
Tip: To convert strings to TSQLTimeStampOffset values without raising an exception when the string is not a valid date-time, use TryStrToSQLTimeStampOffset instead.