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.
I cannot find anything significant here, on the WFF, regarding a remedy for my current time calculation requirement. I can do this one, albeit laboriously, in DM. However, I would like something, as least, as elegant (?) as DATEADD while keeping it within WebFOCUS - no Javascripting please. The immediate need is to convert the timestamp from GMT to EST (5 hour change so the DATEADD won't work). The replies to this post may be of benefit to some other “time clock” functions which I have in mind as well as this immediate case.
Thanks, in advance for any solutions. c/o Nationwide Insurance
This message was previously edited by: Kerry, October 06, 2008 02:09 PMThis message has been edited. Last edited by: Doug,
In FOCUS Since 1983 ~ from FOCUS to WebFOCUS. Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
Have you looked at the HADD function used for incrementing a Date-time value? I believe 'hour' is one of the components that can be incremented, so that should do the trick.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
Originally posted by Doug: I cannot find anything significant here, on the WFF, regarding a remedy for my current time calculation requirement. I can do this one, albeit laboriously, in DM. However, I would like something, as least, as elegant (?) as DATEADD while keeping it within WebFOCUS - no Javascripting please. The immediate need is to convert the timestamp from GMT to EST (5 hour change so the DATEADD won't work). The replies to this post may be of benefit to some other “time clock” functions which I have in mind as well as this immediate case.
Thanks, in advance for any solutions. c/o Nationwide Insurance
This message was previously edited by: Kerry, October 06, 2008 02:09 PM
In FOCUS Since 1983 ~ from FOCUS to WebFOCUS. Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
I hope you don't have to take DST changes into account then?
GMT doesn't do DST (same as UTC), but I suspect local time (currently EST in your case) may throw a spanner in the wheels there...
That said, I think the HGETZ function is relatively new, but that returns the current date-time in UTC. In combination with HGETC and HDIFF, that should at least give you your current DST offset in hours.
That won't necessarily help you for an arbitrary date-time though.
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 :