It is currently Thu Mar 28, 2024 12:06 pm


All times are UTC


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: GregorianToJD
PostPosted: Sun Feb 19, 2006 1:01 pm 
Noobie
Noobie

Joined: Wed Oct 12, 2005 11:06 am
Posts: 23
Location: The Netherlands
Why is GregorianToJD PHP function disabled :evil:

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 19, 2006 1:14 pm 
Moderator
Moderator

Joined: Sat Feb 12, 2005 4:48 pm
Posts: 575
Location: Largo, Florida USA
Just out of courosity, what is the GregorianToJD PHP function, what is it's function, how is it used?

_________________
Bob G.

Grout Recoloring Systems: http://coloryourgrout.com

Save Your Data - Do Backups
http://forum.100webspace.com/viewtopic. ... highlight=


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 19, 2006 2:02 pm 
Posts like crazy!
Posts like crazy!

Joined: Mon Sep 26, 2005 5:03 pm
Posts: 204
Location: The Netherlands
If GregtoJD is all you need then here:
Code:
function GregToJD() {
   $year = date("Y", time());
   $month = date("n", time());
   $day = date("j", time());

   $a = floor((14 - $month) / 12);
   $y = $year + 4800 - $a;
   $m = $month + 12 * $a - 3;

   $JDN = $day + floor((153 * $m + 2) / 5) + (365 * $y) + floor($y / 4) - floor($y / 100) + floor($y / 400) - 32045;
   return $JDN;
}


I don't have any others from the calendar functions so let's hope this is all you need :/


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 19, 2006 2:43 pm 
Noobie
Noobie

Joined: Wed Feb 08, 2006 11:32 pm
Posts: 12
bobg wrote:
Just out of courosity, what is the GregorianToJD PHP function, what is it's function, how is it used?


http://pt.php.net/manual/en/function.gregoriantojd.php wrote:
GregorianToJD -- Converts a Gregorian date to Julian Day Count.


All in da book... :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ]  Moderators: fhmagic, KJ, Moderators, Support Team

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
100WebSpace © 2011