Login   Register  
PHP Classes
elePHPant
Icontem

Date Fmt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Pavel
Name: Pavel <e-mail contact>
Packages: 4 Browse all classes by Pavel Browse all classes by
Country: Russian Federation Russian Federation - PHP jobs in Russian Federation
Age: 27
All time rank: 189851 in Russian Federation Russian Federation
Week rank: 837 Up16 in Russian Federation Russian Federation Up


  Detailed description   Download .zip .tar.gz  
This class can format dates according to a format string.

It takes a time stamp value and formats it according to a given format string specification that defines which date and time elements will appear in the string in different format variants.

It allows formatting of time ranges ("2 days ago", "after 1 week"), as well as traditional date/time strings ("10/01/2011", "3:50 AM"). Shortened output is also supported ("2d ago", "after 1w").

The formatted dates are returned encoded using UTF-8 in different idioms and languages.

  Classes of Pavel  >  Date Fmt  >  Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Date Fmt
Base name: date-fmt
Description: Format dates according to a format string
Version: -
PHP version: 5.0
License: Public Domain
All time users: 517 users
All time rank: 4828
Week users: 1 user
Week rank: 2054 Up
 
  Groups   Rate classes User ratings   Applications   Related links   Files Files  

  Groups  
Group folder image Localization Internationalization and translations View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Time and Date Time and date values, formats and conversion View top rated classes


  User ratings  
There are not enough user ratings to display for this class.

  Applications that use this class  
Link Description
Online Tools This resource uses DateFmt to format timestamps.
UverseBlog This project uses DateFmt.
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related links  
Link Description
Reference Full formatting documentation, localization manual and developer's reference.

  Files folder image Files  
File Role Description
Plain text file date.php Class The DateFmt class. Must be UTF-8-encoded.
Accessible without login Plain text file format.txt Doc. Brief format strings documentation
Accessible without login Plain text file sample.php Example Usage example

Download all files: date-fmt.tar.gz date-fmt.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.