jdtounix: Julian date to Unix time stamp

We can get unix time stamp by using gdtounix() function. Here we will use Julian Date ( Integer )as input.
Here is an example.
$day = cal_to_jd(CAL_GREGORIAN,2,2,2010); // Julian Day count
$day_unix=jdtounix($day); // Unix time stamp
echo date('m/d/y',$day_unix);// In date format
The output is here
Note: jdtounix() returns the local time, where unix Timestamp generator uses GMT


Post your comments , suggestion , error , requirements etc here .

We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2021 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer