PHP Classes

Id Date Formatter: Format dates for Bahasa Indonesia

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 44 All time: 10,814 This week: 455Up
Version License PHP version Categories
id-date-formatter 1.0.0The PHP License5Localization, PHP 5, Time and Date
Description 

Author

This package is specific mainly for applications used in Indonesia Indonesia .

This package can format dates for Bahasa Indonesia.

It can take a given date or use the current date and returns the data formatted for the Indonesian language.

The format of the dates to be returned is configurable.

Innovation Award
PHP Programming Innovation award nominee
December 2017
Number 8
Bahasa is known as the Indonesian language. It has its own formatting rules for text and other types of values.

This class can format date in Bahasa in a configurable way.

Manuel Lemos
Picture of Nanang F. Rozi
  Performance   Level  
Name: Nanang F. Rozi <contact>
Classes: 3 packages by
Country: Indonesia Indonesia
Age: 36
All time rank: 439576 in Indonesia Indonesia
Week rank: 23 Up1 in Indonesia Indonesia Up
Innovation award
Innovation award
Nominee: 2x

Documentation

id-date-formatter

PHP Date Formatter for Bahasa Indonesia. The main usable methods were `format()` to format the date and `now()` to get the current date. All methods were defined static. So, yo don't need to create the object from `IdDateFormatter` class.

Usage

Example codes:

use FrosyaLabs\Lang\IdDateFormatter;

$tanggal = '2016-02-17';

// Show current date, format: dd/mm/yyyy
echo IdDateFormatter::now().'<br>';

// Format $tanggal using complete format, ex:
// Rabu, 17 Februari 2016
echo IdDateFormatter::format($tanggal, IdDateFormatter::COMPLETE);

\* For more information, please check the library's PHPDoc


  Files folder image Files (4)  
File Role Description
Files folder imagesrc (1 directory)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (4)  /  src  
File Role Description
Files folder imageFrosyaLabs (1 directory)

  Files folder image Files (4)  /  src  /  FrosyaLabs  
File Role Description
Files folder imageLang (1 file)

  Files folder image Files (4)  /  src  /  FrosyaLabs  /  Lang  
File Role Description
  Plain text file IdDateFormatter.php Class Class source

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  
 100%
Total:44
This week:0
All time:10,814
This week:455Up