note 128034 added to class.datetime

From: Date: Wed, 21 Dec 2022 02:21:27 +0000
Subject: note 128034 added to class.datetime
Groups: php.notes 
Request: Send a blank email to php-notes+get-219991@lists.php.net to get a copy of this message
A simple example to create the date time object by now with time zone $Now = new DateTime('now', new DateTimeZone('Asia/Taipei')); A simple example to print data time with format echo $Now->format('Y-m-d H:i:s'); ---- Server IP: 45.112.84.4 Probable Submitter: 185.85.3.175 (proxied: 103.226.212.1) ---- Manual Page -- https://php.net/manual/en/class.datetime.php Edit -- https://main.php.net/note/edit/128034 Del: integrated -- https://main.php.net/note/delete/128034/integrated Del: useless -- https://main.php.net/note/delete/128034/useless Del: bad code -- https://main.php.net/note/delete/128034/bad+code Del: spam -- https://main.php.net/note/delete/128034/spam Del: non-english -- https://main.php.net/note/delete/128034/non-english Del: in docs -- https://main.php.net/note/delete/128034/in+docs Del: other reasons-- https://main.php.net/note/delete/128034 Reject -- https://main.php.net/note/reject/128034 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#219991) next »