Htaccess    html   Php    javascript   Asp   css    maths  Past Questions  Practice Tests Online

ref.datetime function syntax tag tutorial 2013 Donate at flattr Flattr this





Alert! Connect with 10,000 Chating Online. Join Now

Php ref.datetime () function

Write your php code

 
<?php ?>

Php Result


Your code below



XIX. Date and Time Functions

Introduction

These functions allow you to get the date and time from the server where your PHP scripts are running. You can use these functions to format the date and time in many different ways.

Note: Please keep in mind that these functions are dependent on the locale settings of your server. Make sure to take daylight saving time (use e.g. $date = strtotime('+7 days', $date) and not $date += 7*24*60*60) and leap years into consideration when working with these functions.

Requirements

No external libraries are needed to build this extension.

Installation

There is no installation needed to use these functions; they are part of the PHP core.

Runtime Configuration

This extension has no configuration directives defined in php.ini.

Resource Types

This extension has no resource types defined.

Predefined Constants

This extension has no constants defined.

Table of Contents
checkdate -- Validate a Gregorian date
date_sunrise --  Returns time of sunrise for a given day and location
date_sunset --  Returns time of sunset for a given day and location
date -- Format a local time/date
getdate -- Get date/time information
gettimeofday -- Get current time
gmdate -- Format a GMT/UTC date/time
gmmktime -- Get Unix timestamp for a GMT date
gmstrftime --  Format a GMT/UTC time/date according to locale settings
idate --  Format a local time/date as integer
localtime -- Get the local time
microtime --  Return current Unix timestamp with microseconds
mktime -- Get Unix timestamp for a date
strftime --  Format a local time/date according to locale settings
strptime --  Parse a time/date generated with strftime()
strtotime --  Parse about any English textual datetime description into a Unix timestamp
time -- Return current Unix timestamp

Php ref.datetime Function syntax tag

ref.datetime php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online



Php ref.datetime syntax tutorial

php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.


Function index

Variables

Expressions

Operators

Control-Structures

Cookies

Array

Date & Time

Directory function

File

Image

Operators

Form data handling

Mathematics operators

Mail

Php Mysql

Network Functions

Strings

php tutorial guides,functions, classes, code examples and tags for creating simple dynamic site to mysql database driven sites
 
 
Htaccess    html   Php    javascript   Asp   css    maths  Past Questions  Practice Tests Online