Visit Gigasoft's Web Site
 ProEssentials v9 Help

DateTimeMode

Scope

Pego, Pesgo

Type

Int32

Default

0

.NET

PeData.DateTimeMode

Ocx|Vcl

DateTimeMode

DLL

PEP_nDATETIMEMODE

 

Purpose

This property enables the Graph and Scientific Graph to treat X Axis data as serially formatted date/time data.

 

.NET Gigasoft.Enums.

ActiveX and

 

DateTimeMode.

DLL Constants

Description

None

PEDTM_NONE (0)

Treat X data as regular numerical data.

Vb

PEDTM_VB (1)

X data compatible with VB variant date/time format.

Delphi

PEDTM_DELPHI (2)

Old setting for Delphi v1, Delphi v2 and later users generally use the Vb format.

 

Graph VCL Enumerations

eDateTimeMode = (gNumericXData, gVBDateTime, gDelphiDateTime);

 

Scientific Graph VCL Enumerations

eDateTimeMode = (sgNumericXData, sgVBDateTime, sgDelphiDateTime);

 

Comments

PeData.DateTimeMode members of Pego.PeData, Pesgo.PeData

 

VB, Access, and FoxPro store date/time data as the number of days since 12/31/1899. In all cases, the fraction portion of date/time format represents the fraction of a day.

 

If your data describes both date and time, then you will need to store x data as double precision via the UsingXDataII property. If your data describes just dates, then you can use XData to store single precision data.

 

The Graph object uses this property in conjunction with DeltaX, DeltasPerDay, StartTime., and AutoXData.

 

The Scientific Graph can use this property standalone, or use in conjunction with StartTime, EndTime, and SpecialDateTimeMode.

 

Note that the use of DateTimeMode is not compatible with ManualXAxisTicknLine. If you need a specific looking date/time scale, you will have to manually produce this scale as described in Chapter7, Question 22.

 

See Also: DateTimeMilliSeconds, PEcreateserialdate, PEdecipherserialdate, XData, XDataII, and UsingXDataII.

 

Scales accounting for Day Light Savings can be constructed if DayLightSavings is TRUE.

 

Refer to Chapter 7, Question 19 for a discussion of handling date/time within your charts.