Share This Post:
Date time value in IVR app
Hi Support, I need a Date and Time variable in Studio to date stamp my own log file records. The canned variable __VG__CURTIME_MILLIS__ returns values I don’t recognize. Example,
the action stored the value 1260550105883 from the __VG__CURTIME_MILLIS__ variable (wall clock was 12/10/2009 11:50:00) Can you either tell me the format used by the __VG__CURTIME_MILLIS__ variable, or, How to set up a variable that stamps the current system date and time
The __VG__CURTIME_MILLIS__ variable is returned by the following Java function: System.currentTimeMillis(). The definition from the Java manual is the following:
"Returns the current time in milliseconds. Note that while the unit of time of the return value is a millisecond, the granularity of the value depends on the underlying operating system and may be larger.
For example, many operating systems measure time in units of tens of milliseconds. See the description of the class Date for a discussion of slight discrepancies that may arise between "computer time" and coordinated universal time (UTC).
Returns:
the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC."
Normally, you have similar functions in different programming languages.
Share This Post: