Difference between revisions of "Extensions.DateTime.GetTimeStamp"
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
'''GetTimestamp''' shall return a timestamp, expressed in milliseconds elapsed since 1970-01-01 00:00:00 UTC. | '''GetTimestamp''' shall return a timestamp, expressed in milliseconds elapsed since 1970-01-01 00:00:00 UTC. | ||
− | + | {{TermReturnValue| [[Integer]] | This result returns a timestamp in milliseconds.}} | |
− | |||
− | |||
− | {{ | ||
− | |||
== Examples == | == Examples == |
Revision as of 04:39, 17 July 2014
Classification
Name | GetTimeStamp |
Short Description | Returns a timestamp in milliseconds |
Class | Term |
Extension | OTX DateTime Extension |
Group | - |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
Pseudo-Code Syntax
Integer timeStamp = GetTimeStamp();
Description
GetTimestamp shall return a timestamp, expressed in milliseconds elapsed since 1970-01-01 00:00:00 UTC.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
Integer | This result returns a timestamp in milliseconds. |
Examples
// Return a string of the current data/time
Integer timestamp = GetTime();
String myCurrentTimeString = FormatDate(timestamp, "YYYY-MM-dd HH:mm:ss");
// returns the String "2014-07-12 16:18:03"