HHJLDATE
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
HHJLDATE
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.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
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
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
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.
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.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
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.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.