Function: RTT (Real to Text)
- 已更新2023-02-21
- 閱讀時間為 2 分鐘
Function: RTT (Real to Text)
Converts a number that exists in the DIAdem double time format into a text. The interpretation of the number depends on the variable ApplicationTimebaseHighResolution.
ReturnValue = RTT(Value[,Format])
Input Parameters
Specifies a numeric value or a variable in DIAdem double time format.
| |||
| Specifies a format definition for the time format. |
Return Parameters
| ReturnValue | Returns the date as text. |
The TTR function converts a text in time format into a number in DIAdem double time format.
Examples
The following example converts a positive number into time format.
| VBScript | Python |
Dim strMyResult strMyResult = RTT(14*3600)
The following example formats the current date.
| VBScript | Python |
Call MsgBox(RTT(Now,"#YYYY/MM/DD"))
![]() | The first physical input quantity is arbitrary. The second input quantity must be dimensionless. The first physical input quantity and the result quantity are the same. The Input and Result Quantities for Quantity-Based Calculations page contains an overview of the input quantities and result quantities of all functions. Refer to the Help page Calculating Quantity-Based and Non-Quantity-Based in DIAdem for the conditions and rules for quantity-based calculations. |
Related Functions
Command: ChnConvertNumericToTime | Command: ChnConvertTimeToNumeric | Command: ConvertTimeType | Command: TTD | Function: ^ | Function: Abs | Function: Ceil | Function: Deg | Function: Eex | Function: Exp | Function: Fak | Function: Floor | Function: Frac | Function: Lg | Function: Ln | Function: MaxV | Function: MinV | Function: Mod | Function: Rad | Function: Random | Function: Rnd | Function: Round | Function: RTP (Real To Part of Date) | Function: RTP (Real To Part of Date) | Function: Sign | Function: SND | Function: Sqr | Function: Sqrt | Function: Trunc | Function: TTR (Text to Real) | Function: VU

