HHJLDATE

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

HHJLDATE

Post by ray.wurlod »

Does anyone have information on how to use the Oracle HHJLDATE function/procedure? With an example or two would be wonderful. This converts Gregorian to Hijrah ("Islamic") dates.
Last edited by ray.wurlod on Wed Aug 23, 2006 9:26 am, edited 1 time in total.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Found something here on page 6-40 of the linked pdf. Interestingly enough, the title is Oracle7 Spatial Data Option Reference and Administrator's Guide. :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Yes, I found that also, but the description is incomplete. We've been experimenting with it, and are getting close. Will advise conclusions in a day or three.

Actually, that's not true - the description is complete as far as it goes; HHJLDATE generates a Julian date form. What the customer wants is the Hijrah date in calendar form. But HHCLDATE is not the whole solution to that either.

Stay tuned.
Last edited by ray.wurlod on Wed Aug 23, 2006 9:25 am, edited 1 time in total.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

That just didn't do it. This function does:

Code: Select all

create or replace Function Get_Hdate(F_Date in Date) Return Varchar2 Is
V_date Varchar2(30);
Begin
Select To_char(F_Date, 'DD/MM/YYYY', 'nls_calendar = '''||'Arabic Hijrah''')
Into V_date
From Dual ;
Return V_date;
End Get_Hdate;
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply