SqlTimSt.SQLTimeStampOffsetToStr

From RAD Studio VCL Documentation (Japanese)
Jump to: navigation, search

Contents

Delphi の情報

ファイル SqlTimSt.pas

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


ユニット: SqlTimSt

種類: 関数

可視性: public

C++ の情報

ファイル SqlTimSt.hpp

	System::UnicodeString __fastcall SQLTimeStampOffsetToStr(System::UnicodeString Format, const Sqltimst::TSQLTimeStampOffset & DateTime);


ユニット: SqlTimSt

種類: 関数

説明

TSQLTimeStampOffset 値を文字列に変換します。


SQLTimeStampOffsetToStr を使用すると、TSQLTimeStampOffset 値を文字列に変換することができます。

Format パラメータで指定した文字列が空であれば、TSQLTimeStampOffset 値は、ShortDateFormat グローバル変数と LongTimeFormat グローバル変数を使って整形されます。 DateTime パラメータの時間を表すフィールドがすべて 0 であれば、時間は表示されません。

Format パラメータに渡す形式文字列を作成するには、標準の日時形式指定子を使用してください。

FormatSettings パラメータを使うと、変換時に考慮する代替形式設定を指定することができます。 これにより、結果の文字列でロケール表現を使用することができます。

関連リンク

Personal tools