September 17, 2008, 08:55 AM
<JG>Correct,
&TOD
"Returns the current time.
When you enter FOCUS, this variable is updated to the current system time only when you execute a
MODIFY, SCAN, or FSCAN command.
To obtain the exact time during any process, use the HHMMSS subroutine"
In this case unless it's a very long running process &TOD would almost certainly do.
IF you want in process timestamps then you need HHMMSS.
June 07, 2010, 04:08 PM
nsk110483Hi,
I need time format like 23:54:43.12
how to get it ... I use &TOD which gives 23.54.43
| In Focus since 1993. WebFOCUS 7.7.03 Win 2003 |
June 07, 2010, 05:55 PM
nsk110483I have used this
DT1/HYYMDs = HGETC(8, 'HYYMDs');
but it gives me a format like
2010/06/07 17.50.43.426
I am trying to truncate the last character from the above string .. like i need to get the time as 17:50:43.43
In Focus since 2008
WebFOCUS 8.2.0.1
Windows 7 - IE,Chrome,Firefox
Excel, PDF, HTML, AHTML, XML
JavaScript, jQuery, D3.js, Highcharts
June 07, 2010, 06:15 PM
WazIs there a reason to round the time at 100 milliseconds ?
You are limited with Date/Time formats.
Although the manual describes the format HYYMDS{x}, where x is the number of digits, I could not get it to work with a COMPUTE or a DEFINE.
You may have to convert the time with HTIME to get a numeric and round the number.
Waz...Prod: | WebFOCUS 7.6.10/8.1.04 | Upgrade: | WebFOCUS 8.2.07 | OS: | Linux |
Outputs: | HTML, PDF, Excel, PPT |
In Focus since 1984 |
Pity the lost knowledge of an old programmer! |