PHP unixtojd

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

PHP : unixtojd() function

Description

The unixtojd() function converts a UNIX timestamp to a Julian day count.

Version

(PHP 4 and above)

Syntax

unixtojd(timestamp)

Parameter

Name

Description

Required /
Optional

Type

timestamp

A unix timestamp to convert.

Optional

Integer.

Return value

A Julian day.

Value Type : Integer.

Example :

  1. echo(unixtojd());  

  2. ?>  

Output :

2455392