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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Working hours
 Login/Join
 
Gold member
posted
Therefore between 4pm on Friday to 9am on Monday is 2 working hours, using your formula as it's less than 1 day it would return "0" days

DEFINE FILE GIGICCTREC
DIFF/I6 = DATEDIF(ORD_ISSUE_DT, CUSTOMER_HO_DATE, 'WD');
END
TABLE FILE GIGICCTREC
PRINT
CR_CDESG
ORD_ISSUE_DT
CUSTOMER_HO_DATE
DIFF
WHERE CR_CDESG EQ 'CB-IRVN NP1'
END

With the weekday DATEDIF does not count Saturday or Sunday when calculating days. This means that the difference between Friday and Monday is one day.


Webfocus 7.6.2 on Windows Enterprise 2003 Server and
Webfocus 7.6.2 on HP Unix Server
 
Posts: 74 | Location: London | Registered: January 28, 2005Report This Post
Gold member
posted Hide Post
Is there a function for working hours


Webfocus 7.6.2 on Windows Enterprise 2003 Server and
Webfocus 7.6.2 on HP Unix Server
 
Posts: 74 | Location: London | Registered: January 28, 2005Report This Post
Expert
posted Hide Post
Hi Adolf,

Has this issue been resolved on your side?

I ran a quick search on Information Builders' online documents regarding "date" and "hours" and came across the following topics which may be of interest:

Calculating Business Hours and Days Accurately (Not Including Weekends)

How to extract the time from a datetime field

How to calculate business hours between DATETIME stamps?

Introduction to Date-Time Functions

Hope these help. Big Grin

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1948 | Location: New York | Registered: November 16, 2004Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders