This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class {Vendor}_{Module}_Helper_Date extends Mage_Core_Helper_Abstract | |
{ | |
// Format Dates | |
const ZEND_DATE_FORMAT_DB_DATE = 'y-MM-dd'; | |
const ZEND_DATE_FORMAT_DB_DATETIME = 'y-MM-dd HH:mm:ss'; | |
const ZEND_DATE_FORMAT_DB_TIME = 'HH:mm:ss'; | |
const ZEND_DATE_FORMAT_XSD_DATETIME = 'y-MM-ddTHH:mm:ss'; | |
const ZEND_DATE_FORMAT_TEXT_FULL = 'EEEE dd/M TT'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* USAGE: include on index.php | api.php | cron.php at the end of the file | |
**/ | |
// Colors REF | |
// http://stackoverflow.com/questions/3696430/print-colorful-string-out-to-console-with-python?lq=1 | |
// Profile |