Can I use strtotime() and strftime()?

by Stephan Borg
Thursday 29 of December, 2005
Posted to Developer's FAQ
We have implement locale timezone formatting using BitDate() class.

For easy access, always use:

<?php
$gBitSystem
->mServerTimestamp->strtotime(...);

and

$gBitSystem->mServerTimestamp->strftime(...);

as 
straight replacements.
?>


Inside Smarty templates, use the:

<?php
{$timestamp|bit_short_datetime}
?>


Other formats are:
  • bit_date_format
  • bit_long_datetime
  • bit_short_date
  • bit_short_time
  • bit_long_date
  • bit_long_time
  • bit_short_datetime