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
Your Rating

Post Comment This is for short comments only. Use the forum for more discussions.

HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2019 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer