DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Property: TimeFormat for CellFormatter

Property: TimeFormat for CellFormatter

Specifies the time format used in the workbook.

Object.TimeFormat
ObjectCellFormatter
Object with this property
Object.TimeFormatString with read and write access

Use the following format specifications for the time format:

YYear
MMonth
DDay
hHour
mMinute
sSecond
fFraction of a second
ppIdentifies am / pm

The following example shows the settings required for reading the lines listed below from a workbook:

2004-06-28 16:28:20;  29,82004-06-28 16:28:21;  36,42004-06-28 16:28:22;  44,12004-06-28 16:28:23;  53,92004-06-28 16:28:24;  68,4

The TimeFormat property specifies the time format valid for the first channel.

Dim oGroup: Set oGroup = Root.ChannelGroups.Add("MyChannelGroup")
Workbook.Formatter.TimeFormat = "YYYY-MM-DD hh:mm:ss"
Dim oBlock: Set oBlock = Workbook.Sheets(1).GetCellBlock(1,1)

Dim oChannel
Set oChannel= oBlock.Channels.Add("Channel",eTime)
Call oGroup.Channels.AddDirectAccessChannel(oChannel)

Set oChannel= oBlock.Channels.Add("Channel")
Call oGroup.Channels.AddDirectAccessChannel(oChannel)
In This Section
Was this information helpful?