Most Referenced Functions
  » google_pagerank()
  » preg_replace()
  » imagecreatefrompng()
  » site_pageranks()
  » imagepng()
  » imagedestroy()
  » imagestring()
  » imagecolorallocate()
  » htmlentities()
  » preg_match()
  » fopen()
  » header()
  » getimagesize()
  » session_start()
  » preg_match_all()
  » htmlspecialchars()
  » ob_start()
  » ob_flush()
  » flush()
  » strstr()
  » strpos()
  » setcookie()
  » str_replace()
  » array2vars()
  » nl2br()
  » preg_split()
  » ereg()
  » ereg_replace()
  » urlencode()
  » readgzfile()

Become a sponsor for $15/month. Link is sitewide - PR5 homepage, 20+ PR4 pages, 90+ PR3 pages. Email dave[AT]icemelon[D0T]c0m.

PHP Functions

Function: cyrus_unbind

(PHP 4 >= 4.1.0, PECL)

cyrus_unbind -- Unbind ...

Description

bool cyrus_unbind ( resource connection, string trigger_name )

Warning

This function is currently not documented; only the argument list is available.

XX. 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 .

Runtime Configuration

The behaviour of these functions is affected by settings in php.ini .

Table 1. Date/Time Configuration Options

Name Default Changeable Changelog date.default_latitude "31.7667" PHP_INI_ALL Available since PHP 5.0.0. date.default_longitude "35.2333" PHP_INI_ALL Available since PHP 5.0.0. date.sunrise_zenith "90.83" PHP_INI_ALL Available since PHP 5.0.0. date.sunset_zenith "90.83" PHP_INI_ALL Available since PHP 5.0.0. date.timezone "GMT" PHP_INI_ALL Available since PHP 5.1.0. For further details and definitions of the PHP_INI_* constants, see the Appendix H .

Here's a short explanation of the configuration directives.

date.default_latitude float

The default latitude.

date.default_longitude float

The default longitude.

date.sunrise_zenith float

The default sunrise zenith.

date.sunset_zenith float

The default sunset zenith.

date.timezone string

The default timezone. This is used when the TZ environment variable is not set. Currently it is only used by the strtotime() function.

Note: The first four configuration options are currently only used by date_sunrise() and date_sunset() .

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

Related Function(s)

  • strtotime()
  • date_sunrise()
  • date_sunset()
  • checkdate()
  • date()
  • getdate()
  • gettimeofday()
  • gmdate()
  • gmmktime()
  • gmstrftime()
  • idate()
  • localtime()
  • microtime()
  • mktime()
  • strftime()
  • strptime()
  • time()
  • Icemelon -- PHP, CSS, Javascript Tutorials, & More!
      © 2005-2010 Icemelon.com   Email: dave[AT]icemelon[D0T]c0m