View Single Post
Old 11-15-2012, 05:47 AM   PM User | #1
Durakken
New to the CF scene

 
Join Date: Nov 2012
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
Durakken is an unknown quantity at this point
I need this programmed...

Yeah... I haven't programmed in a while and really don't want to relearn everything just to do this simple thing so could someone please do this for me?

I need a program where I can stick in a number and it gives me a set of 3 dates. 2 of them I can do because i made them up while the third is the julian calender more or less.

So I need to be able to input a number
then I need to do work on that number to get what year day and month it would be if day 1 is "Jan 1, 1" the year is 365.25 days long (which means every 4th year is a leap year, and I need to be able to put in a number of days up to 20,000,000

I know there is probably some easy trick to doing this but I've never been good with those methods and like i said i haven't programmed in a while so could someone write this up? Nothing fancy... it's for personal quick conversion between these dates.

Basically it needs to be a function that accepts a number up to 20,000,000 and returns write a line of "Julian Calender: Month Day, Year NY" printed on the page...

Basically fit in this...
Code:
<html>
<head>
<script type="text/JavaScript">
<!--
function popup() {
var days = prompt("Days?", "");
document.write("Days: " +days);
JulienCal(days);

document.write("<br /><input type=button onclick=popup() value=popup>");
};
//-->
</script>
</head>
<body>
<input type="button" onclick="popup()" value="popup">
</body>
</html>
Thanks for the help!
Durakken is offline   Reply With Quote