Utilities.DecodeTime Method

Applies to TestComplete 14.0, last modified on January 23, 2019
This method is obsolete. See the Remarks section below.

Description

The Utilities.DecodeTime method splits the specified time value into hours, minutes, seconds and milliseconds and stores them to the Hour, Min, Sec and MSec parameters correspondingly.

Declaration

Utilities.DecodeTime(TimeHourMinSecMSec)

Time [in]    Required    Variant    
Hour [out]    Required    Integer    
Min [out]    Required    Integer    
Sec [out]    Required    Integer    
MSec [out]    Required    Integer    
Result None

Applies To

The method is applied to the following object:

Parameters

The method has the following parameters:

Time

Specifies the date that will be decoded.

Hour

Holds the hours extracted from the specified time.

Min

Holds the minutes extracted from the specified time.

Sec

Holds the milliseconds extracted from the specified time.

MSec

Result Value

None.

Remarks

Currently, this function works only in VBScript and DelphiScript scripts.

This method is obsolete. It is supported for backward compatibility only. To extract hours, minutes and seconds from a time value, use the aqDateTime.GetHours, aqDateTime.GetMinutes and aqDateTime.GetSeconds methods, respectively.

See Also

Working With Time
aqDateTime.GetHours Method
aqDateTime.GetMinutes Method
aqDateTime.GetSeconds Method
aqDateTime.Today Method
aqDateTime.Now Method
aqDateTime.GetYear Method
aqDateTime.GetMonth Method
aqDateTime.GetDay Method
aqDateTime.SetTimeElements Method

Highlight search results