Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     A way to get Timestamp with Timezone from Dialog Manager ?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
A way to get Timestamp with Timezone from Dialog Manager ?
 Login/Join
 
Gold member
posted
I am trying to print current Timestamp of the server in my report. Is there any way
to get the Timestamp with Timezone information included (For ex., PST) ? I prefer to
do it in Dialog Manager if possible. I tried &MDYY, &DMYY ... etc but they dont have
Timezone.

TIA,


WebFOCUS 5.3.3 MRE - Solaris - Sun Web Server - Weblogic
 
Posts: 85 | Registered: December 20, 2005Report This Post
Virtuoso
posted Hide Post
This will get you the day and time
DT/HMDYYIA = HGETC(8, 'HMDYYIA');

IBI has the following example to play with for
Time Zone.

DEFINE FILE CAR
NEW1/A8 WITH CAR=HHMMSS('A8');
NEW2/I2=EDIT(EDIT(NEW1,'99$$$$$$'));
NEW3/A6=EDIT(NEW1,'$$999999');
NEW4/I2=NEW2 - 1;
NEW5/A2=EDIT(NEW4);
NEW6/A8=NEW5||NEW3;
NEW7/I2=NEW2 - 2;
NEW8/A2=EDIT(NEW7);
NEW9/A8=NEW8||NEW3;
NEW10/I2=NEW2 - 3;
NEW11/A2=EDIT(NEW10);
NEW12/A8=NEW11||NEW3;
END
TABLE FILE CAR
HEADING
"EASTERN TIME IS: "CENTRAL TIME IS: "MOUNTAIN TIME IS: "PACIFIC TIME IS: PRINT CAR NOPRINT
IF RECORDLIMIT EQ 1
END


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Expert
posted Hide Post
That previous example unfortunately does not tell you what time zone the server is set to.

If your WebFOCUS server is on Windows, you may want to read this article:

http://www.informationbuilders.com/support/developers/timezone.html


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Gold member
posted Hide Post
Thx for the replies. I am on Solaris. I decided to go with a INCLUDE file. I created a cron job to create this include file.

Main file:
-INCLUDE app/timezone.fex

Crontab entry:
  
00 01 * * * /apps/opt/webfocus/ibi/apps/proj01/crtz.sh >> /tmp/webfocus_cron.log 2>&1

Cron script (crtz.sh):
  
#!/usr/bin/ksh
export timezonestr=$(/usr/xpg4/bin/date '+%Z')
echo "-SET &vTimeZone='$timezonestr'" > /apps/opt/webfocus/ibi/WebFOCUS53/basedir/proj01/app/timezone.fex

Generated Include file (timezone.fex):
  
-SET &vTimeZone='PST'


WebFOCUS 5.3.3 MRE - Solaris - Sun Web Server - Weblogic
 
Posts: 85 | Registered: December 20, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     A way to get Timestamp with Timezone from Dialog Manager ?

Copyright © 1996-2020 Information Builders