Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Time Intrinsic Functions - AsDisplayString Method

Panel
bgColor#2c3c4c

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