Search
 
SCRIPT & CODE EXAMPLE
 

PHP

date now php

date('Y-m-d H:i:s')
Comment

date now php

date("Y-m-d H:i:s");
Comment

php now

// In my case I want to print to log my zone time (Rome GMT +2)
// without changing the default timezone
// Add +2 hours respect to php time
$new_time = date("Y-m-d H:i:s", strtotime('+2 hours'));
Comment

date now php

echo date('c');

// 2015-07-27T00:00:00+02:00
Comment

php date now

date_default_timezone_set('Asia/Taipei');
		$temp1= date('Y');
Comment

PREVIOUS NEXT
Code Example
Php :: laravel 8 password confirmation validation 
Php :: php wait 
Php :: wordpress error log 
Php :: php get user agent 
Php :: php how to delete file 
Php :: php store object in session 
Php :: mac php ini file path 
Php :: laravel check collection not empty 
Php :: store file into specific directory laravel using storage facade 
Php :: laravel generate env 
Php :: laravel firstorfail 
Php :: uninstall php ubuntu 
Php :: laravel route group middleware prefix 
Php :: Adding or Subtracting Time 
Php :: laravel check if array is empty 
Php :: pdo transaction 
Php :: view a pdf file in the browser using the php header function 
Php :: get information from another website 
Php :: number format comma php 
Php :: open php.ini in ubuntu 
Php :: laravel custom model primary Key 
Php :: Hours to minute convert in php 
Php :: php filter emal 
Php :: php set content type pdf 
Php :: create and download text file in php 
Php :: php copy file 
Php :: complete url php 
Php :: how get the first item in foreach in laravel 
Php :: php get current year 
Php :: php clean html tags 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =