Skip to content

sm-alfariz/indonesian-date

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

indonesian-date-format

Indonesia (ID) date format ##instalation

composer require sm-alfariz/indonesian-date-format

##how to use

<?php
require_once 'vendor/autoload.php';
use Fendi\IndonesianDate\IndonesiaDate;
$tgl = new IndonesiaDate;
echo $tgl->blogDate(date("Y-m-d")); //echo blog date style in indonosian format
$time = date('2016-08-22 21:25:43');
echo $tgl->humanDifSimple($time);  //result " 4 hari "
echo $tgl->humanDif($time);  //result " 3 hari 3 jam 54 menit yang lalu "