ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Interchange Server + Adapters » Java routine for finding start and ending business day

Post new topic  Reply to topic
 Java routine for finding start and ending business day « View previous topic :: View next topic » 
Author Message
jeevan
PostPosted: Fri Nov 18, 2005 8:22 am    Post subject: Java routine for finding start and ending business day Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

Do anyone of you have source code for finding start and end business of a month

thanks
Back to top
View user's profile Send private message
jeevan
PostPosted: Fri Nov 18, 2005 10:12 am    Post subject: Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

Please read as

start and end business day of a month in above question


thanks
Back to top
View user's profile Send private message
fponcet
PostPosted: Mon Nov 21, 2005 5:21 am    Post subject: Re: Java routine for finding start and ending business day Reply with quote

Acolyte

Joined: 20 Oct 2005
Posts: 55

jeevan wrote:
Do anyone of you have source code for finding start and end business of a month

thanks


The first and last business days are dependent of public hollidays, which are can be different in each country and can be different each year. I think you would need a database with public holidays, and that database would have to be updated every year.
Back to top
View user's profile Send private message
christian witschel
PostPosted: Wed Dec 07, 2005 1:04 am    Post subject: Reply with quote

Apprentice

Joined: 07 Dec 2005
Posts: 27

Do you have access to a SAP system?
Try using SAP factory calendar to find out if a given day is a business day.
Back to top
View user's profile Send private message Send e-mail
JLRowe
PostPosted: Wed Dec 07, 2005 9:45 am    Post subject: Reply with quote

Yatiri

Joined: 25 May 2002
Posts: 664
Location: South East London

Have a look at Joda time http://joda-time.sourceforge.net/ it's the dog's danglies, and is a worthy replacement for the somewhat quirky date handling in J2SE.

From the site:

Quote:
Why Joda Time?

Joda-Time has been created to radically change date and time handling is Java. The JDK classes Date and Calendar are very badly designed, have had numerous bugs and have odd performance effects. Here are some of our reasons for developing and using Joda-Time:

Easy to Use. Calendar makes accessing 'normal' dates difficult, due to the lack of simple methods. Joda-Time has straightforward field accessors.

Easy to Extend. The JDK supports multiple calendar systems via subclasses of Calendar. This is clunky, and in practice it is very difficult to write another calendar system. Joda-Time supports multiple calendar systems via a pluggable system based on the Chronology class.

Comprehensive Feature Set. The library is intended to provide all the functionality that is required for date-time calculations. It already provides out-of-the-box features, such as support for oddball date formats, which are difficult to replicate with the JDK.

Up-to-date Time Zone calculations. The timezone implementation is based on the public tz database, which is updated several times a year. New Joda-Time releases incorporate all changes made to this database. Should the changes be needed earlier, manually updating and building Joda-Time is easy.

Calendar support. The library currently provides 6 calendar systems. More will be added in the future.

Easy interoperability. The library internally uses a millisecond instant which is identical to the JDK and similar to other common time representations. This makes interoperability easy, and Joda-Time comes with out-of-the-box JDK interoperability.

Better Performance Characteristics. Calendar has strange performance characteristics as it recalculates fields at unexpected moments. Joda-Time does only the minimal calculation for the field that is being accessed.

Good Test Coverage. Joda-Time has a comprehensive set of developer tests, providing assurance of the library's quality.

Complete Documentation. There is a full User Guide which provides an overview and covers common usage scenarios. The javadoc is extremely detailed and covers most of the API.

Maturity. The library has been under active development since 2002. Although it continues to be improved with the addition of new features and bug-fixes, it is a mature and reliable code base.

Open Source. Joda-Time is licenced under the business friendly Apache License Version 2.0.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Interchange Server + Adapters » Java routine for finding start and ending business day
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.