Αποτελέσματα Αναζήτησης
23 Ιαν 2009 · To get current datetime (now) with PHP, you can use the date class with any PHP version, or better the datetime class with PHP >= 5.2. Various date format expressions are available here. Example using date. This expression will return NOW in format Y-m-d H:i:s. <?php echo date('Y-m-d H:i:s'); ?> Example using datetime class
Learn how to use PHP functions to format, create and get dates and times. See examples of date() , mktime() , strtotime() and more.
Learn how to use the time function in PHP to get the current time in seconds since the Unix Epoch. See examples, parameters, return values, and notes on timezones and DateTimeImmutable class.
The time() function returns the current time in the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT).
22 Ιαν 2024 · Learn how to use PHP functions and classes to retrieve and format the current date and time in various formats and time zones. See examples of date(), time(), DateTime, and date_default_timezone_set().
26 Σεπ 2024 · Learn how to use the date () function to format UNIX timestamps into a human-readable format. See examples of different parameters and formats for displaying the current date and time in PHP.
Returns a string formatted according to the given format string using the given integer timestamp (Unix timestamp) or the current time if no timestamp is given. In other words, timestamp is optional and defaults to the value of time (). Unix timestamps do not handle timezones.