IBM®
Skip to main content
    Country/region select      Terms of use
 
 
   
     Home      Products      Services & solutions      Support & downloads      My account     
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Lotus Sandbox

Lotus Sandbox

developerWorks
Calculate time difference in work hours

Sandbox sample submitted by Luis Veloso.

Give two notesdatetime first smaller than second give timedif in work hours
Category:Code Example
Audience:Application Developer
Product:Notes/Domino
Release:All
Platform:Windows
Date Posted:08/29/2002
File Size:6,120 bytes

Click here to download

Download Time Estimator
56 KB Modem0 hrs <1 mins
128 KB ISDN0 hrs <1 mins
384 K DSL0 hrs <1 mins
768 K DSL0 hrs <1 mins
T10 hrs <1 mins
T30 hrs <1 mins

Detailed Description:
Const StartHDay = 9 'Starting Time for workday
Const EndHDay = 18 'End time for work day
Const WorkDaySecond = (EndHDay -StartHDay) * 60 * 60
Const DayInSecond = 86400
Const HeuresOuvres = False 'Set to true if you want result in hours else
EndHDay - StartHDay = 1 Day


This code is referenced in the LDD Today article "Producing reports in Lotus Workflow."




All Sandbox downloads are licensed as-is, unsupported, and non-warranted.

Additional reviews and comments disabled

Reviews
Calculate time difference in work hours (Submitted by Luis Veloso - 29.08.2002)
rating: 1 star I cant say (Submitted by Ehood Ziv - 03.10.2006)

Lotus Software

Document options
Print this page
Print view

 Search
Search
Advanced Search

  Sandbox views
By Application Name
By Category
By Product
By Audience
By Date
By Submitter
Conferences

  Resources
developerWorks: Lotus Downloads
alphaWorks Downloads
    About IBM Privacy Contact