Home
PHP
Chart
Class
Components
Cookie Session
Data Structure
Data Type
Date
Design Patterns
Development
DNS
Email
File Directory
Form
Functions
Graphics Image
HTML
Language Basics
Login Authentication
Math
MySQL Database
Network
Operator
PDF
Reflection
Statement
String
Utility Function
Web Services SOAP WSDL
XML
Menu
Using localtime() : localtime « Date « PHP
PHP
Date
localtime
Using localtime()
<?php $a = localtime(); $a[4] += 1; $a[5] += 1900; print
"$a[4]/$a[3]/$a[5]"
;
Related examples in the same category
1.
Changing time zone with an environment variable
2.
Finding time parts
3.
Simple time zone calculation
4.
Return array from localtime( )