You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Time Intrinsic Functions - AsDisplayString Method
Convert the variable to a formatted string
Member of Time Intrinsic Functions (PRIM_LIBI.ITimeIntrinsics)

Parameters

Name

Type

Data Type

Description

Result

*Result (Optional)

String

Resulting string

Format

*Input (Optional)

Enumeration

Format of the time

Details


AsDisplayString returns the supplied time formatted using one of the available supplied time formats.

Allowed Formats

Enum Value

Description

HHMMSS

e.g. "123456"

HHsMMsSS

e.g. "12:34:56"

ISO

e.g. "12:34:56"

Example


In this example, the time 12:34:56 would return the value "123456"
#Result := #Time.AsDisplayString( HHMMSS )

See also

All Component Classes
Technical Reference

  • No labels