Hi, I want to know how can I mark any week day as holiday, e.g.
“Saturday”, “Sunday”. Thanks Deepak This e-mail message may contain confidential, proprietary or legally privileged information. It should not be used by anyone who is not the original intended recipient. If you have erroneously received this message, please delete it immediately and notify the sender. The recipient acknowledges that 3i Infotech or its subsidiaries and associated companies, (collectively "3i Infotech"), are unable to exercise control or ensure or guarantee the integrity of/over the contents of the information contained in e-mail transmissions and further acknowledges that any views expressed in this message are those of the individual sender and no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of 3i Infotech. Before opening any attachments please check them for viruses and defects. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
On Tue, 2007-11-13 at 14:51 +0530, deepak sharma wrote: > I want to know how can I mark any week day as holiday, e.g. > “Saturday”, “Sunday”. In which context? Most calendars do that already. Are you trying to implement a new calendar? Luigi -- The nice thing about standards is that there are so many of them to choose from. -- Andrew S. Tanenbaum ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
In reply to this post by deepak sharma-4
I'm not defining any specific calendar, it should be as simple as
NullCalendar, but I'd be defining a method where I can specify which weekday is to make as holiday, e.g. "Saturday", "Sunday" would be the argument to that method, and I should be able to make any specific holiday marked weekday, as Businessday, like sat. or sun. in our example. Deepak -----Original Message----- From: Luigi Ballabio [mailto:[hidden email]] Sent: Tuesday, November 13, 2007 4:00 PM To: [hidden email] Subject: RE: [Quantlib-users] Mark weekday as holiday.. On Tue, 2007-11-13 at 15:37 +0530, deepak sharma wrote: > Actually I'm constructing NullCalendar() and then adding set of holidays > through Calendar::addHoliday() method, where it contains list of Saturday, > Sundays and other holidays, I think it's wrong, instead I should use > Target(), please guide me.. What calendar are you trying to define? Luigi P.S. Please CC the mailing list -- Lubarsky's Law of Cybernetic Entomology: There is _always_ one more bug. --- This e-mail message may contain confidential, proprietary or legally privileged information. It should not be used by anyone who is not the original intended recipient.If you have erroneously received this message, please delete it immediately and notify the sender. The recipient acknowledges that 3i Infotech or its subsidiaries and associated companies, (collectively "3i Infotech"), are unable to exercise control or ensure or guarantee the integrity of/over the contents of the information contained in e-mail transmissions and further acknowledges that any views expressed in this message are those of the individual sender and no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of 3i Infotech. Before opening any attachments please check them for viruses and defects. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Hi,
Please tell me, Do I need to implement a new calendar as per my need or I can change the Target calendar class... Thanks Deepak -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of deepak sharma Sent: Tuesday, November 13, 2007 4:22 PM To: 'Luigi Ballabio' Cc: [hidden email] Subject: Re: [Quantlib-users] Mark weekday as holiday.. I'm not defining any specific calendar, it should be as simple as NullCalendar, but I'd be defining a method where I can specify which weekday is to make as holiday, e.g. "Saturday", "Sunday" would be the argument to that method, and I should be able to make any specific holiday marked weekday, as Businessday, like sat. or sun. in our example. Deepak -----Original Message----- From: Luigi Ballabio [mailto:[hidden email]] Sent: Tuesday, November 13, 2007 4:00 PM To: [hidden email] Subject: RE: [Quantlib-users] Mark weekday as holiday.. On Tue, 2007-11-13 at 15:37 +0530, deepak sharma wrote: > Actually I'm constructing NullCalendar() and then adding set of holidays > through Calendar::addHoliday() method, where it contains list of Saturday, > Sundays and other holidays, I think it's wrong, instead I should use > Target(), please guide me.. What calendar are you trying to define? Luigi P.S. Please CC the mailing list -- Lubarsky's Law of Cybernetic Entomology: There is _always_ one more bug. --- This e-mail message may contain confidential, proprietary or legally privileged information. It should not be used by anyone who is not the original intended recipient.If you have erroneously received this message, please delete it immediately and notify the sender. The recipient acknowledges that 3i Infotech or its subsidiaries and associated companies, (collectively "3i Infotech"), are unable to exercise control or ensure or guarantee the integrity of/over the contents of the information contained in e-mail transmissions and further acknowledges that any views expressed in this message are those of the individual sender and no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of 3i Infotech. Before opening any attachments please check them for viruses and defects. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users --- This e-mail message may contain confidential, proprietary or legally privileged information. It should not be used by anyone who is not the original intended recipient.If you have erroneously received this message, please delete it immediately and notify the sender. The recipient acknowledges that 3i Infotech or its subsidiaries and associated companies, (collectively "3i Infotech"), are unable to exercise control or ensure or guarantee the integrity of/over the contents of the information contained in e-mail transmissions and further acknowledges that any views expressed in this message are those of the individual sender and no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of 3i Infotech. Before opening any attachments please check them for viruses and defects. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Hi Deepak,
You can probably use the SimpleCalendar class as this particular calendar has defined Sat and Sun ONLY as holidays. You can then use the regular addHoliday() method to add additional dates. Hope that helps... Toy out. > From: [hidden email] > To: [hidden email] > Date: Wed, 14 Nov 2007 11:41:00 +0530 > CC: [hidden email] > Subject: Re: [Quantlib-users] Mark weekday as holiday.. > > Hi, > > Please tell me, Do I need to implement a new calendar as per my need or I > can change the Target calendar class... > > Thanks > Deepak > > -----Original Message----- > From: [hidden email] > [mailto:[hidden email]] On Behalf Of deepak > sharma > Sent: Tuesday, November 13, 2007 4:22 PM > To: 'Luigi Ballabio' > Cc: [hidden email] > Subject: Re: [Quantlib-users] Mark weekday as holiday.. > > I'm not defining any specific calendar, it should be as simple as > NullCalendar, but I'd be defining a method where I can specify which weekday > is to make as holiday, e.g. "Saturday", "Sunday" would be the argument to > that method, and I should be able to make any specific holiday marked > weekday, as Businessday, like sat. or sun. in our example. > > > Deepak > > > > -----Original Message----- > From: Luigi Ballabio [mailto:[hidden email]] > Sent: Tuesday, November 13, 2007 4:00 PM > To: [hidden email] > Subject: RE: [Quantlib-users] Mark weekday as holiday.. > > > On Tue, 2007-11-13 at 15:37 +0530, deepak sharma wrote: > > Actually I'm constructing NullCalendar() and then adding set of holidays > > through Calendar::addHoliday() method, where it contains list of Saturday, > > Sundays and other holidays, I think it's wrong, instead I should use > > Target(), please guide me.. > > What calendar are you trying to define? > > Luigi > > P.S. Please CC the mailing list > > > -- > > Lubarsky's Law of Cybernetic Entomology: > There is _always_ one more bug. > > > > > > > > > --- > This e-mail message may contain confidential, proprietary or legally > privileged information. It should not be used by anyone who is not the > original intended recipient.If you have erroneously received this message, > please delete it immediately and notify the sender. The recipient > acknowledges that 3i Infotech or its subsidiaries and associated companies, > (collectively "3i Infotech"), are unable to exercise control or ensure or > guarantee the integrity of/over the contents of the information contained in > e-mail transmissions and further acknowledges that any views expressed in > this message are those of the individual sender and no binding nature of the > message shall be implied or assumed unless the sender does so expressly with > due authority of 3i Infotech. Before opening any attachments please check > them for viruses and defects. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > QuantLib-users mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/quantlib-users > > > > --- > This e-mail message may contain confidential, proprietary or legally privileged information. It should not be used by anyone who is not the original intended recipient.If you have erroneously received this message, please delete it immediately and notify the sender. The recipient acknowledges that 3i Infotech or its subsidiaries and associated companies, (collectively "3i Infotech"), are unable to exercise control or ensure or guarantee the integrity of/over the contents of the information contained in e-mail transmissions and further acknowledges that any views expressed in this message are those of the individual sender and no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of 3i Infotech. Before opening any attachments please check them for viruses and defects. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > QuantLib-users mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/quantlib-users Do you know a place like the back of your hand? Share local knowledge with BackOfMyHand.com ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
In reply to this post by deepak sharma-4
Hey you are right. It's on my system, but I'm slightly confused as to how it got there. I've enclosed it here. Luigi, was this in QuantLib previously? If not, must have been an old file of mine. Thus you will need to check it. The logic is simple enough, it just checks for weekends... Toy out...
Are you the Quizmaster? Play BrainBattle with a friend now! ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
In reply to this post by deepak sharma-4
Hi, Here's an updated version coded within the style of the other calenders. Free free to add this to QuantLib if it will be useful to anyone out there. Toy out.
Are you the Quizmaster? Play BrainBattle with a friend now! ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Hi, Thanks Toy and Luigi, Now I understood I
don’t need to implement any new calendar, because it’s there what I wanted, Now
I would be using country specific calendar. Thanks and Regards Deepak From: Toyin Akin
[mailto:[hidden email]]
From: [hidden email] From: [hidden email] Hi Toy, I couldn’t find SimpleCalendar
class… Deepak From: Toyin Akin
[mailto:[hidden email]] Hi Deepak, Do you know a place like the back of your hand? Share local
knowledge with BackOfMyHand.com This e-mail
message may contain confidential, proprietary or legally privileged
information. It should not be used by anyone who is not the original intended
recipient. If you have erroneously received this message, please delete it
immediately and notify the sender. The recipient acknowledges that 3i Infotech
or its subsidiaries and associated companies, (collectively '3i Infotech'), are
unable to exercise control or ensure or guarantee the integrity of/over the
contents of the information contained in e-mail transmissions and further
acknowledges that any views expressed in this message are those of the
individual sender and no binding nature of the message shall be implied or
assumed unless the sender does so expressly with due authority of 3i Infotech.
Before opening any attachments please check them for viruses and defects. Are you the Quizmaster? Play BrainBattle
with a friend now! Are you the Quizmaster? Play BrainBattle
with a friend now! This e-mail message may contain confidential, proprietary or legally privileged information. It should not be used by anyone who is not the original intended recipient. If you have erroneously received this message, please delete it immediately and notify the sender. The recipient acknowledges that 3i Infotech or its subsidiaries and associated companies, (collectively "3i Infotech"), are unable to exercise control or ensure or guarantee the integrity of/over the contents of the information contained in e-mail transmissions and further acknowledges that any views expressed in this message are those of the individual sender and no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of 3i Infotech. Before opening any attachments please check them for viruses and defects. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Free forum by Nabble | Edit this page |