System.JSON.Writers.TJsonTextWriter.DateTimeZoneHandling

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property DateTimeZoneHandling: TJsonDateTimeZoneHandling read FDateTimeZoneHandling write FDateTimeZoneHandling;

C++

__property System::Json::Types::TJsonDateTimeZoneHandling DateTimeZoneHandling = {read=FDateTimeZoneHandling, write=FDateTimeZoneHandling, nodefault};

Properties

Type Visibility Source Unit Parent
property public
System.JSON.Writers.pas
System.JSON.Writers.hpp
System.JSON.Writers TJsonTextWriter

Description

Gets or sets how TDateTime time zones are handled when writing JSON text.

The possible values are: Local, Utc.

  • Local: Represents the local time. The time varies depending on the zone you are.
  • Utc: Represents the UTC (Coordinated Universal Time) time. This is a universal time value. You can obtain the local time from the UTC time subtracting or adding a certain number of hours from UTC depending on how many time zones you are away from Greenwich (England).

When you create an instance of TJsonTextWriter, DateTimeZoneHandling is set to Local.

See Also