Solved

arabic/islamic date in javascript

Posted on 1997-08-17
13
1,023 Views
Last Modified: 2010-08-05
I am looking for a javascript that displays the date in
Arabic/Islamic terms. This would require converting the
Georgian dates to the equivilant Arabic/Islamic date.
0
Comment
Question by:lufupa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
  • +4
13 Comments
 
LVL 1

Expert Comment

by:barakp
ID: 1268995
what does that look like?
0
 

Author Comment

by:lufupa
ID: 1268996
18.8.97

if you look at this website, it will give you more info.
the site has a cgi based converter for arabic dates. i am not
able to use that & so i am looking for a javascript based version.
0
 

Author Comment

by:lufupa
ID: 1268997
18.8.97

if you look at this website, it will give you more info.
the site has a cgi based converter for arabic dates. i am not
able to use that & so i am looking for a javascript based version.

http://wwwcgi.umr.edu/cgi-bin/cgiwrap/msaumr/hijri
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 1

Expert Comment

by:pmcintos
ID: 1268998
I'm not going to answer because I have absolutely no idea what kind of conversion factors you need to use or how similar a format arabic and gregorian dates are. ( yes, I'm from north america ) anyway...You can use the getTime() function on your page, and it will return the number of seconds since January 1, 1997.  You could then write the code to convert and display that date in Arabic form.  That's my 2 cents... it might help...

I also beleive that if you are asking for someone to write all the code required for you, you will have to supply WAY MORE information on how to convert that data.  ( I seriously doubt that any expert on this site wants to write this code for you for points...it would be more like dollars.
I hope you get the answer you're looking for.

By the way...the page format looks fantastic.  Very clean and professional.

Pete
0
 
LVL 1

Expert Comment

by:pmcintos
ID: 1268999
Excuse me....I made a typo....

I said
"number of seconds since January 1, 1997"

that's obviously wrong..... It should be:

"number of seconds since January 1, 1970"
0
 
LVL 10

Expert Comment

by:kollegov
ID: 1269000
Lufupa, if you will follow further, you will find
authors of this CGI converter. Do not stop, follow his page
and you will find download of his program.
This package include C source.
Well, last step, if you have enough programming skills
you can rewrite conversion algorithm.
Otherwise you can ask somebody to do this work for you.


0
 
LVL 1

Expert Comment

by:909233
ID: 1269001
If you wanted to use a different language--then my advice to
you was obtain the appropiate font for that language and
apply it to your browser....
bob
0
 
LVL 3

Accepted Solution

by:
mmoore earned 300 total points
ID: 1269002
I'm not sure how such a calendar could work seeing as how
the Islamic year is unpredictable. By that I mean that
Ramadan starts and stops according to the sighting of
the moon by 3 reliable witnesses. Since we don't know when
the moon will be sited how can we make a future calendar.
Now if you are talking about the past, then we must know
when the moon was sighted on each of the lunar years.
  But Assuming that you consider this a trivial point,
It seem to me that you could use any one of the astrological
tools available to find the formula. These usually involve
the use of a book called and Ephemiris. (check my spelling
here) So, go to any astrologer and ask how to calculate
x number of moons ago.
 
0
 
LVL 3

Expert Comment

by:mmoore
ID: 1269003
PS. If we can find a method to do the conversion, I might
like to try writing the JavaScript which does it.
0
 

Author Comment

by:lufupa
ID: 1269004
26.8.97

Thanks to all who responded to this question. In my the view the
question still remain unanswered. It seems the only it will work
is by the cgi program written by the person whose link i provided
in my previous comments
0
 
LVL 3

Expert Comment

by:mmoore
ID: 1269005
How do you know that the cgi is correct? Have you actually
confirmed any dates? And if so, for how far back? I would
not be surprised if the cgi is not very accurate.
I'd still like to persue but it may take a while.
There is a email list called History of Islam where there
are very learned scholars who may be able to answer
questions about the calender. I will ask there. I have set
up a temporary address where you can contact me if you
are interested in continuing this. latif@kirin.tymnet.com
Thanks for the points. :-)
0
 

Author Comment

by:lufupa
ID: 1269006
26.8.97

I am still very much interested in finding out a solution for
this script & have made a note of your email. I will email the person who wrote the cgi for information and i will email you with the reply. Thanking you for you help and advice

Kassim
0
 

Expert Comment

by:abdylas
ID: 7381332
http://pages.intnet.mu/islam/dates.htm

here is the link to explain of the Islamic Calendar. Maybe it will give you some idea how to convert.

Regards Ades
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question