Page 1 of 1

Subtracting and adding Julian dates

PostPosted: Wed May 11, 2011 1:39 pm
by Arun kumar rajesh
Hi all,

I am coding a tool using REXX. My need is to convert the julian date to Gregorian.
Before that i need to subtract 7 days from the current julian date and from that date i need to add 5 days.Then to convert it.
I need only the subtraction and addition coding format. Please help in this

Re: Subtracting and adding Julian dates

PostPosted: Wed May 11, 2011 2:02 pm
by prino
And where are you stuck? Please show us your code!

Re: Subtracting and adding Julian dates

PostPosted: Wed May 11, 2011 2:02 pm
by enrico-sorichetti
read the REXX manuals about the DATE builtin function and it' s conversion capabilities here
http://publibz.boulder.ibm.com/cgi-bin/ ... s/IKJ4BK90

hint ...
to carry on arithmetics on dates use the BASE DATE representation

I wonder about the wannabe tool writers who do not care/have the skill to find the most basic info on the language they use :evil:

Re: Subtracting and adding Julian dates

PostPosted: Thu May 12, 2011 4:21 pm
by Arun kumar rajesh
Hi enrico,
Thanks for your reference. Sorry for that. This is my first tool. So I am not aware of it. I am beginner soon i ll try to catch all.

Re: Subtracting and adding Julian dates

PostPosted: Thu May 12, 2011 8:55 pm
by enrico-sorichetti
before attempting to write tools You should have a better knowledge of the <language> You will use to implement them !

Re: Subtracting and adding Julian dates

PostPosted: Thu May 12, 2011 10:00 pm
by MrSpock
Arun kumar rajesh wrote:Before that i need to subtract 7 days from the current julian date and from that date i need to add 5 days.Then to convert it.


I don't understand this. Why not just subtract 2 days?