WebDW
retrieving incorrect microseconds when using getitem.
The following is DW HTML for a row that contains a datetime
column:
d_query_offload_expenditure_niin.rows[0] = new HTDW_RowClass(
"((1 0
'002029473')(5 0 'H')(6 0 '2003-05-06 07:13:00:043000
'))",0,"002029473","EA",31,"V","H",new
DW_DatetimeClass(103,4,6,7,13,0,43000),"20885",new
DW_DatetimeClass(103,4,6,0,0,0,0),"0001","3126","3126","STK",new
DW_DatetimeClass(103,4,6,0,0,0,0),"-679");
When the GOB is created for the datetime cell it separates the
date and
time pieces into separate values. If the microseconds
contain a leading zero
that zero is lost because the value is
treated as a number rather than a
string. Note the bolded
values above. When the datetime is represented as a
string it
correctly contains the leading zero on the microseconds
("043000") but when the date and time parts are passed to
DW_DatetimeClass the microseconds are passed as a number
(043000) and
the leading zero is lost (43000). As far as I can
tell the only date and
time part that is hurt by losing leading
zeroes is the microseconds. All
others are evaluated properly
without the leading zeroes.