Difference between revisions of "Extensions.DateTime.FormatDuration"
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
== Properties == | == Properties == | ||
+ | {| {{TableHeader}} | ||
+ | {{TableRowPropertiesHeader}} | ||
+ | {{TableRowPropertie1| Duration | [[String]] | [[Variable]] | - | [0..1] | A formatted time.}} | ||
+ | {{TableRowPropertie2| Timestamp | [[Integer]] | [[Term]] | - | [0..1] | This property represents a duration in milliseconds to a string that is formatted according to the specified rules.}} | ||
+ | {{TableRowPropertie1 | Pattern | [[String]] | [[Term]] | - | [0..1] | User-specified format for displaying the time.}} | ||
+ | |} | ||
== Examples == | == Examples == | ||
== See also == | == See also == |
Revision as of 03:20, 12 July 2014
Classification
Name | FormatDuration |
Short Description | Give a duration in milliseconds from a time stamp. |
Class | Term |
Extension | OTX DateTime Extension |
Group | - |
Exceptions | OutOfBoundsException |
Checker Rules | - |
Standard Compliant | Yes |
Pseudo-Code Syntax
String duration = FormatDuration(Timestamp, <<pattern>>);
Description
FormatDuration returns a specified duration in milliseconds as a string representation. Formatting will be made to the format of Date Term, with the difference that the milliseconds elapsed interpreted as a duration, not the date Analog.
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Duration | String | Variable | - | [0..1] | A formatted time. |
Timestamp | Integer | Term | - | [0..1] | This property represents a duration in milliseconds to a string that is formatted according to the specified rules. |
Pattern | String | Term | - | [0..1] | User-specified format for displaying the time. |