SetTimeValue

Description

Sets the text value of a PBDOM_ATTRIBUTE object. The SetTimeValue method creates this text value by serializing the provided time value into a string.

Syntax

pbdom_attribute_name.SetTimeValue(time timeValue, string strTimeFormat)

Argument

Description

pbdom_attribute_name

The name of the PBDOM_ATTRIBUTE

timeValue

A time value to be set for the PBDOM_ATTRIBUTE

strTimeFormat

The format in which the time value is to be set for the PBDOM_ATTRIBUTE, for example, HH:MM:SS


The value of the strTimeFormat parameter can use slashes or colons as delimiters. The following table illustrates characters that have special meaning in strTimeFormat.

Character

Meaning

Example

H

Hour number with no leading zero

5

HH

Hour number with leading zero, if applicable

05

M

Minutes number with no leading zero

5

MM

Minutes number with leading zero, if applicable

05

S

Seconds number with no leading zero

5

SS

Seconds number with leading zero, if applicable

55


Return value

PBDOM_ATTRIBUTE. The PBDOM_ATTRIBUTE from which the SetTimeValue method was invoked.

See also

GetTimeValue