TZInfo::TimezonePeriod < Object
| Use Case | Command | Description |
|---|---|---|
| Get time zone abbreviation | period.abbr or period.abbreviation | Returns the abbreviation for the period (e.g., "EST") |
| Get UTC offset | period.utc_offset or period.observed_utc_offset | Returns the total offset from UTC in seconds |
| Check if daylight saving time | period.dst? | Returns true if the period is in daylight saving time |
| Get base UTC offset | period.base_utc_offset | Returns the base offset (standard time) in seconds |
| Get start time | period.starts_at or period.local_starts_at | Returns the start time of the period |
| Get end time | period.ends_at or period.local_ends_at | Returns the end time of the period |
| Get offset object | period.offset | Returns the TZInfo::TimezoneOffset object |
{TimezonePeriod} represents a period of time for a time zone where the same offset from UTC applies. It provides access to the observed offset, time zone abbreviation, start time and end time.
The period of time can be unbounded at the start, end, or both the start and end.
@abstract Time zone period data will returned as an instance of one of the subclasses of {TimezonePeriod}.
newabbrabbreviationbase_utc_offsetdst?end_transitionends_atlocal_ends_atlocal_starts_atobserved_utc_offsetoffsetstart_transitionstarts_atstd_offsetutc_offsetutc_total_offsetzone_identifierattr_reader offsetGenerated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-29 09:50 @216.73.217.46
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format