IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    [SOLVED] Time Calculations / TIMEADD?
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Platinum Member
Posted
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

This message has been edited. Last edited by: kerry,



Available for Consulting Assignments
NC TheFamiLee Network: WF DS 764 on HP laptop.
 
Posts: 83 | Location: North Carolina | Registered: February 23, 2005Reply With QuoteEdit or Delete MessageReport This Post
Virtuoso
Posted Hide Post
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



WF Server: 7.1.6 on Z/OS and Linux, ReportCaster, Self-Service, MRE, Java
Data: DB2, DB2/UDB, Adabas, SQL Server Output: HTML,PDF,Excel2K
WF Client: Linux w/WebSphere, Servlet, CGI
 
Posts: 1235 | Location: Salt Lake City, Utah | Registered: February 02, 2007Reply With QuoteEdit or Delete MessageReport This Post
Platinum Member
Posted Hide Post
Thanks a Gig Darin... I forgot all about that one... HADD did the trick, as follows:

ASSIGNED_EST/HYYMDS = HADD(ASSIGNED_GMT,'hh',-5, 8, ASSIGNED_EST);

This message has been edited. Last edited by: Doug,
 
Posts: 83 | Location: North Carolina | Registered: February 23, 2005Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    [SOLVED] Time Calculations / TIMEADD?

Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.