Copyright © tutorialspoint.com
| unixtojd ( [$timestamp] ); |
Return the Julian Day for a Unix timestamp (seconds since 1.1.1970), or for the current day if no timestamp is given.
| Parameter | Description |
|---|---|
| timestamp | Optional. A unix timestamp to convert. |
A julian day number as integer.
Try out following example:
<?php echo(unixtojd()); ?> |
This will produce following result:
2453855 |
Copyright © tutorialspoint.com