|
Posted by Erwin Moller on 09/27/12 11:36
Janwillem Borleffs wrote:
> DJ Craig wrote:
>> Is there any way that I
>> can fix my program without having to start over writing my own date
>> functions? My program uses the strtotime() and date() functions.
>
> Have a look at the calendar functions:
>
> http://www.php.net/calendar
>
> Example:
>
> $jid = gregoriantojd(10, 15, 1582);
> print_r(cal_from_jd($jid, CAL_GREGORIAN));
>
> Don't forget to read the notice regarding the application of Gregorian
> calendars with dates before 1582-10-15 on the following page:
>
> http://www.php.net/gregoriantojd
>
>
> JW
Thanks too.
That is also excactly what I was looking for. :-)
I added a note to date() for people to look at calendar too, like you
suggested.
Thanks.
Erwin Moller
PS: I hate dates and computers. I hated them when I did Java, I hated them
when I did VB, I hate them always.
[Back to original message]
|