SftMask/OCX 6.5

SftMaskCalendar.GetTimeInfo Method

Softel vdm, Inc.

Converts a time into its components.

Syntax       

VB.NET

object.GetTimeInfo(ByVal Dt As Date, ByRef Hours As Short, ByRef Minutes As Short, ByRef Seconds As Short)

VB

object.GetTimeInfo(ByVal Dt As Date, Hours As Integer, Minutes As Integer, Seconds As Integer)

C#.NET

void object.GetTimeInfo(System.DateTime Dt, out short Hours, out short Minutes, out short Seconds);

VC++

HRESULT object->GetTimeInfo(DATE Dt, short* Hours, short* Minutes, short* Seconds);

C

HRESULT object->raw_GetTimeInfo(DATE Dt, short* Hours, short* Minutes, short* Seconds);

Delphi

procedure object.GetTimeInfo(Dt : TDateTime, out Hours : Smallint, out Minutes : Smallint, out Seconds : Smallint);

object

A SftMaskCalendar object.

Dt

The time to be converted.

Hours

Returns the hours as specified by Dt.

Minutes

Returns the minutes as specified by Dt.

Seconds

Returns the seconds as specified by Dt.

Comments

The GetTimeInfo method converts a time into its components.

GetTimeInfo can be used to convert a date into its hours, minutes and seconds components. Calendar.GetDateInfo is used to retrieve the date related components.

Calendar.GetTimeInfoV is used for languages such as VBScript, which are limited by requiring Variant arguments and do not support strongly typed arguments for return values. For more information please see Using SftMask/OCX with Internet Explorer.


Feedback / comments / error reports for this topic
© 2000, 2008 - Softel vdm, Inc. - www.softelvdm.com