Data.SqlTimSt.SQLTimeStampOffsetToStr

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function SQLTimeStampOffsetToStr(const Format: string; DateTime: TSQLTimeStampOffset): string;
function SQLTimeStampOffsetToStr(const Format: string; DateTime: TSQLTimeStampOffset; const FormatSettings: TFormatSettings): string;

C++

extern DELPHI_PACKAGE System::UnicodeString __fastcall SQLTimeStampOffsetToStr(const System::UnicodeString Format, const TSQLTimeStampOffset &DateTime)/* overload */;

Properties

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

Description

Converts a TSQLTimeStampOffset value to a string.

Use SQLTimeStampOffsetToStr to convert a TSQLTimeStampOffset value to a string.

If the string specified by the Format parameter is empty, the TSQLTimeStampOffset value is formatted using the ShortDateFormat global variable, followed by the LongTimeFormat global variable. The time is not displayed if all time fields in the DateTime parameter are 0.

To create a format string for the Format parameter, use the standard date-time format specifiers.

The FormatSettings parameter can be used to specify the alternate formatting setting to consider during the conversion. This allows the use of locale representations in the resulting string.

See Also