By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,007 Members | 1,020 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,007 IT Pros & Developers. It's quick & easy.

PHP and dates? Whats wrong with timestamp and julian callendar (for experts)

P: n/a
$DOW = (jddayofweek(unixtojd(mktime(1, 1, 1, $month, $day, $year)))+6)%7;

$DOW= (jddayofweek(juliantojd($month, $day, $year))+6)%7;

The results are supposed to be the same, but they are not. Whats wrong? Any
clues?
Feb 6 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
> $DOW = (jddayofweek(unixtojd(mktime(1, 1, 1, $month, $day, $year)))+6)%7;
$DOW= (jddayofweek(juliantojd($month, $day, $year))+6)%7;


In the first line, you convert from Gregorian to Julian Day Count. In
the second, you convert from Julian to Julian Day Count.

Feb 6 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.