X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

PHP date_timestamp_get() Function

PHP Date/Time PHP Date/Time Reference

Example

Return the Unix timestamp for today's date and time:

<?php
$date=date_create();
echo date_timestamp_get($date);
?>

Run example »

Definition and Usage

The date_timestamp_get() function returns the Unix timestamp.


Syntax

date_timestamp_get(object);

Parameter Description
object Required. Specifies a DateTime object returned by date_create()

Technical Details

Return Value: Returns the Unix timestamp that represents the date
PHP Version: 5.3+


PHP Date/Time PHP Date/Time Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook