I18nDatetime::Nice PHP Méthode

Nice() public méthode

Returns the datetime in the format given in the lang file locale sould be set
public Nice ( )
    public function Nice()
    {
        if ($this->value) {
            return $this->FormatI18N(_t('Shop.DateTimeFormatNice', '%m/%d/%G %I:%M%p'));
        }
    }

Usage Example

 public function testField()
 {
     $field = new I18nDatetime();
     $field->setValue('2012-11-21 11:54:13');
     $field->Nice();
     $field->NiceDate();
     $field->Nice24();
     $this->markTestIncomplete('assertions!');
 }