PHP unixtojd() Function
In this chapter you will learn:
- Definition for PHP unixtojd() Function
- Syntax for PHP unixtojd() Function
- Parameter for PHP unixtojd() Function
- Return value from PHP unixtojd() Function
- Example - Convert Unix timestamp to Julian Day Count
Definition
The unixtojd() function converts Unix timestamp to Julian Day Count.
Syntax
PHP unixtojd() Function has the following syntax.
unixtojd(timestamp);
Parameter
- timestamp - Optional. Specifies A unix timestamp to convert
Return
PHP unixtojd() Function returns the Julian Day number for a Unix timestamp (seconds since 1.1.1970), or for the current day if no timestamp is given.
Example
Convert Unix timestamp to Julian Day Count
<?php
echo unixtojd();
?>
The code above generates the following result.
Next chapter...
What you will learn in the next chapter:
- What is PHP class_exists() function
- Syntax for PHP class_exists() function
- Parameters for PHP class_exists() function
- Return Values
- Example - Check that the class exists before trying to use it
- Example - autoload parameter example
Home » PHP Tutorial » PHP Calendar Functions