/functions/date.php

Description

date.php

Takes a date and parses it into a usable format. The form that a date SHOULD arrive in is: <Tue,> 29 Jun 1999 09:52:11 -0500 (EDT) (as specified in RFC 822) -- 'Tue' is optional

Functions
date_intl (line 286)

Returns the localized representation of the date/time.

  • return: a full date representation
string date_intl (mixed $date_format, mixed $stamp)
getDateString (line 336)

Returns a short representation of the date, taking timezones and localization into account.

Depending on user's settings, this string can be of the form: "14:23" or "Jun 14, 2003" depending on whether the stamp is "today" or not.

  • return: the date string
string getDateString (mixed $stamp)
getDayAbrv (line 147)

Like getDayName, but returns the short form

  • return: the day in short human readable form
string getDayAbrv (mixed $day_number)
getDayName (line 112)

Returns the (localized) string for a given day number.

Switch system has been intentionaly chosen for the internationalization of month and day names. The reason is to make sure that _("") strings will go into the main po.

  • return: the day in human readable form
string getDayName (mixed $day_number)
getGMTSeconds (line 30)

Corrects a time stamp to be the local time.

  • return: the corrected timestamp
int getGMTSeconds (mixed $stamp, mixed $tzc)
getLongDateString (line 308)

This returns a date of the format "Wed, Oct 29, 2003 9:52 am", or the same in 24H format (depending on the user's settings), and taking localization into accout.

  • return: the long date string
string getLongDateString (mixed $stamp)
getMonthAbrv (line 235)

Returns the (localized) string for a given month number, short representation.

  • return: the shortened month in human readable form
string getMonthAbrv (mixed $month_number)
getMonthName (line 184)

Returns the (localized) string for a given month number.

  • return: the month name in human readable form
string getMonthName (mixed $month_number)
getTimeStamp (line 394)

Decodes a RFC 822 Date-header into a timestamp

  • return: the timestamp calculated from the header
int getTimeStamp (mixed $dateParts)

Documentation generated on Sat, 07 Oct 2006 16:10:19 +0300 by phpDocumentor 1.3.0RC6