Tutorials Point


  Learning PHP
  Advanced PHP
  PHP Function Reference
  PHP Useful Resources
  Selected Reading

Copyright © 2014 by tutorialspoint



  Home     References     Discussion Forums     About TP  

PHP Function unixtojd ()


previous

Advertisements

Syntax

unixtojd ( [$timestamp] );

Definition and Usage

Return the Julian Day for a Unix timestamp (seconds since 1.1.1970), or for the current day if no timestamp is given.

Paramters

ParameterDescription
timestampOptional. A unix timestamp to convert.

Return Value

A julian day number as integer.

Example

Try out following example:

<?php
echo(unixtojd());
?> 

This will produce following result:

2453855

previous Printer Friendly

Advertisements


  

Advertisements