- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
unixtojd() function in PHP
The unixtojd() function converts a Unix timestamp to a Julian day count. It returns the the Julian Day for a Unix timestamp (seconds since 1.1.1970), or for the current day if no timestamp is given.
Syntax
unixtojd(timestamp)
Parameters
timestamp − Unix timestamp to convert.
Return
The unixtojd() function returns the the Julian Day for a Unix timestamp (seconds since 1.1.1970), or for the current day if no timestamp is given.
Example
The following is an example −
<?php echo unixtojd(); ?>
Output
2458402
Advertisements
To Continue Learning Please Login
Login with Google