Julian date to Calendar date conversion

Hi all,

I require to convert julian date to normal calander date in unix

for eg julian date=122

now i want corresponding calander date

----------------------------------------
gr8 if give very small command/script
and please explain the steps as well(imp)

Thanks

---------- Post updated at 10:32 AM ---------- Previous update was at 10:13 AM ----------

Please reply guys

Try this, if you have GNU date

#days=122
#date -d "`date '+%Y'`-01-01 $days days" '+%m-%d-%Y'

Pravin ,can you please describe me this command how it working?

this command working on ksh but not worked for bash shell?

RJ

It works under bash for me.

Delete the # on each line and try it.

Also try

or

  • they will give you all the information you need

Alan