Definition at line 6 of file oxutilsdate.php.
Public Member Functions | |
formatDBDate ($sDBDateIn, $blForceEnglishRet=false) | |
getTime () | |
getWeekNumber ($iFirstWeekDay, $sTimestamp=null, $sFormat=null) | |
german2English ($sDate) | |
Static Public Member Functions | |
static | getInstance () |
Protected Member Functions | |
_processDate ($aTime, $aDate, $blGerman, $sFormat) | |
Static Private Attributes | |
static | $_instance = null |
static oxUtilsDate.getInstance | ( | ) | [static] |
oxUtilsDate.formatDBDate | ( | $ | sDBDateIn, | |
$ | blForceEnglishRet = false | |||
) |
Reformats date to user defined format.
string | $sDBDateIn Date to reformat | |
bool | $blForceEnglishRet Force to return primaty value(default false) |
Definition at line 46 of file oxutilsdate.php.
oxUtilsDate.getTime | ( | ) |
Returns time according shop timezone configuration. Configures in Admin -> Main menu -> Core Settings -> General
Definition at line 105 of file oxutilsdate.php.
oxUtilsDate.getWeekNumber | ( | $ | iFirstWeekDay, | |
$ | sTimestamp = null , |
|||
$ | sFormat = null | |||
) |
Returns number of the week according to numeration standards (configurable in admin): U - week number, starting with the first Sunday as the first day of the first week; W - week number, starting with the first Monday as the first day of the first week.
int | $iFirstWeekDay if set formats with U, otherwise with W ($myConfig->getConfigParam( 'iFirstWeekDay' )) | |
string | $sTimestamp timestamp, default is null (returns current week number); | |
string | $sFormat calculation format ( "%U" or "%w"), default is null (returns "%W" or defined in admin ). |
Definition at line 126 of file oxutilsdate.php.
oxUtilsDate.german2English | ( | $ | sDate | ) |
Reformats and returns German date string to English.
string | $sDate German format date string |
Definition at line 147 of file oxutilsdate.php.
oxUtilsDate._processDate | ( | $ | aTime, | |
$ | aDate, | |||
$ | blGerman, | |||
$ | sFormat | |||
) | [protected] |
Processes amd formats date / time.
string | $aTime splitted time ( array( H, m, s ) ) | |
array | $aDate splitted date ( array( Y, m, d ) ) | |
bool | $blGerman true if incoming string is in German format (dotted) | |
string | $sFormat date format to produce |
Definition at line 172 of file oxutilsdate.php.
oxUtilsDate.$_instance = null [static, private] |
Definition at line 13 of file oxutilsdate.php.