login | register
Mon 08 of Sep, 2008 (03:46 UTC)

bitweaver - Web Application Framework and CMS

Web Application Framework and CMS

Refresh cache

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:
$gBitSystem->mServerTimestamp->strtotime(...);
 
and
 
$gBitSystem->mServerTimestamp->strftime(...);
 
as straight replacements.


Inside Smarty templates, use the:
{$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

Comments