Studyon Minte9.com
ZCE 5.3




Datetime



<?php

	function getCurrentTimestamp() {

		$now = DateTime::createFromFormat('U.u', microtime(true));
		$now->setTimezone(new DateTimeZone('Europe/Bucharest'));

		$currentTimestamp = str_replace("_", "T", $now->format("Ymd_His.u"));
		return $currentTimestamp; //yyyymmddThhmiss.qqqqqq
	}