2.5.4.110 TimeValue

The TimeValue function returns the time component from a value representing a date and time.

ABNF:

 TimeValue = val [val] sp ("1" / "2") ";TIMEVALUE():129"

Required Arguments:

Name: DateTimeArg

Type: vAny

An argument that specifies a value representing a date and time.

Optional Arguments:

Name: Locale

Type: vLanguageID

An argument that specifies an LCID to use when parsing DateTimeArg.

Return Value:

Type: PtgDate, PtgErr

This function attempts a conversion, as described by the DateTime function, of DateTimeArg to a PtgDate. If the conversion succeeds, the function returns a PtgDate containing the time component of DateTimeArg. If the conversion fails, the function returns a PtgErr with an error code of #VALUE!.