PHP Classes

Date Fmt: Format dates according to a format string

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 57%Total: 567 All time: 5,400 This week: 455Up
Version License PHP version Categories
date-fmt 1.0.0Public Domain5.0Localization, PHP 5, Time and Date
Description 

Author

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.

Picture of Pavel
Name: Pavel <contact>
Classes: 4 packages by
Country: Russian Federation Russian Federation
Age: 124
All time rank: 198857 in Russian Federation Russian Federation
Week rank: 180 Up9 in Russian Federation Russian Federation Up

  Files folder image Files (3)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:567
This week:0
All time:5,400
This week:455Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:58%StarStarStar
Documentation:66%StarStarStarStar
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:57%StarStarStar
Rank:1658