I
would calculate the end dates of each period, with the plus method applied to
the starting date (i.e. today.plus(myPeriod)) ). Now, with the start and the end
dates, you calculate the time between them:
Time
myTime = Actual365().yearFraction(today, endDay)
Is
this what you were looking for?
ciao
Francesco
############################### DISCLAIMER ################################# This message (including any attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorised use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change. Banca del Gottardo (including its group companies) shall not be liable for the improper or incomplete transmission of the information contained in this communication nor for any delay in its receipt or damage to your system. Banca del Gottardo (or its group companies) does not guarantee that the integrity of this communication has been maintained nor that this communication is free of viruses, interceptions or interference. ############################################################################ |
Wow, a neat trick! Francesco ,thanks very much for your help.
Regards,
Amar Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard |
Free forum by Nabble | Edit this page |