1--TEST--
2Test the basics to function date_timestamp_get().
3--CREDITS--
4Carlos Alexandre Pires de Carvalho Junior <calexandrepcjr [at] gmail [dot] com>
5Daiane Alves <daiane [at] lt [dot] coop [dot] br>
6Ednaldo Neimeg Marques <neimeg [at] gmail [dot] com>
7Henrique Ramos <henrique [at] habilissimo [dot] com [dot] br>
8Larissa Mourullo <larismourullo [at] gmail [dot] com>
9Vinicius Dias <carlosv775 [at] gmail [dot] com>
10Virgílio de Carvalho Pontes <vigiliocpontes [at] outlook [dot] com>
11Vitor Mattos <vitor [at] php [dot] rio>
12--FILE--
13<?php
14$beginDtObj = date_create('1970-01-01T00:00:00UTC');
15$beginTimestamp = date_timestamp_get($beginDtObj);
16var_dump($beginTimestamp);
17
18// Test the DateTime feature alias in function date_timestamp_get().
19$dateTimeTz = (new DateTime('1970-01-01T00:00:00UTC'))->getTimeStamp();
20var_dump($dateTimeTz === $beginTimestamp);
21?>
22--EXPECT--
23int(0)
24bool(true)
25