Focal Point
What is date-timestamp Format of START_STAMP and END_STAMP in the BOTLOG Table
December 23, 2014, 05:04 AM
iBenyWhat is date-timestamp Format of START_STAMP and END_STAMP in the BOTLOG Table
Hi
I am trying to create a Webfocus Utilization Report Using BOTLOG table of ReportCaster Metadata,
The Column Start_Stamp has value like '00000000000000000001417602095864'.
Not Sure what this format is and How can i derive the Date-timestamp out of this.
Please Help.
Webfocus 8105,8808,7703,7611, EXL2K,HTML,PDF,COMT,AHTML Info Assist+ , Reportcaster
December 23, 2014, 05:18 AM
Ram Prasad EMore detailed explanation of this available in below post from Susannah.
How to Read the ReportCaster Schedule FileThanks,
Ram
January 07, 2015, 11:16 PM
iBenyUnfortunately the link Doesnot Open.
Can you give a piece of code that converts Zulu Timestamp to a readable timestamp?
Webfocus 8105,8808,7703,7611, EXL2K,HTML,PDF,COMT,AHTML Info Assist+ , Reportcaster
January 08, 2015, 04:04 AM
Wep5622It's the number of milliseconds since midnight on January 1st, 1970 in the GMT/UTC time zone.
I haven't found a way to convert that to a local datetime using plain FOCUS code, but I did manage to convert it using the following bit of passthru SQL (Our report caster database lives in an MSSQL database):
SQL SQLMSS PREPARE SQLOUT FOR
SELECT GETDATE() - GETUTCDATE() AS DIFF_UTC, ' ' AS DUMMY;
END
DEFINE FILE SQLOUT
EPOCH_AT_TZ/HYYMDs = HADD(DIFF_UTC, 'yy', 70, 8, EPOCH_AT_TZ);
END
TABLE FILE SQLOUT
PRINT EPOCH_AT_TZ
BY DUMMY
ON TABLE HOLD AS MAI00010H_TZINFO FORMAT FOCUS INDEX DUMMY
END
-RUN
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
January 08, 2015, 07:34 AM
Tony AJohn Gray wrote an excellent article on adjusting for local time -
link - combine that with the article from Susannah and it's easy to build what you need.
Also search on Zulu time from the search button above. There are a whole host of posts on this subject.
Suffice to say that the number is a count of milliseconds since the base date-time.
T
In FOCUS since 1986 | WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2 | | |
WebFOCUS App Studio 8.2.06 standalone on Windows 10 | |