Init offset
Mage_Core_Model_Date
__construct
()
Calculates timezone offset
int
calculateOffset
([string $timezone = null])
Deprecated since 1.1.7
void
checkDateTime
( $year, $month, $day, [ $hour = 0], [ $minute = 0], [ $second = 0])
-
$year
-
$month
-
$day
-
$hour
-
$minute
-
$second
Converts input date into date with timezone offset Input date must be in GMT timezone
string
date
([string $format = null], [int|string $input = null])
-
string
$format
-
int|string
$input: date in GMT timezone
Get current timezone offset in seconds/minutes/hours
int
getGmtOffset
([string $type = 'seconds'])
Forms GMT date
string
gmtDate
([string $format = null], [int|string $input = null])
-
string
$format
-
int|string
$input: date in current timezone
Forms GMT timestamp
int
gmtTimestamp
([int|string $input = null])
-
int|string
$input: date in current timezone
Deprecated since 1.1.7
void
parseDateTime
( $dateTimeString, $dateTimeFormat)
-
$dateTimeString
-
$dateTimeFormat
Converts input date into timestamp with timezone offset Input date must be in GMT timezone
int
timestamp
([int|string $input = null])
-
int|string
$input: date in GMT timezone
Gets the store config timezone
string
_getConfigTimezone
()