Core:HabariDateTime Class

From Habari Project

Jump to: navigation, search




With the HabariDateTime object, you can either get() or out() the date. Each support the same format strings as PHP's date() function.

// March 10, 2001, 5:16 pm
$post->pubdate->out('F j, Y, g:i a');

// Monday 8th of August 2005 03:12:46 PM
echo $comment->date->get('l jS \of F Y h:i:s A');
This page describes a PHP class that is in the Habari software. For more comprehensive technical information visit the API Documentation.
Other Class Pages
Personal tools