Variant c_DateTime::t_gettimezone() { SmartResource<TimeZone> tz = m_dt->timezone(); if (tz->isValid()) { return c_DateTimeZone::wrap(tz); } return false; }
Variant HHVM_METHOD(DateTime, getTimezone) { DateTimeData* data = Native::data<DateTimeData>(this_); SmartResource<TimeZone> tz = data->m_dt->timezone(); if (tz->isValid()) { return DateTimeZoneData::wrap(tz); } return false; }