Class TimeZone

Description

TimeZone is a simple class to colect the information identifying a UTC time zone.

    • abbreviation - String - the abbreviated name for the time zone.
    • name - String - the name of the time zone.
    TimeZone class >> timeZones() returns an array of the known time zones TimeZone class >> defaultTimeZone() returns the default time zone (Grenwich Mean Time) DateAndTime class >> localTimeZone() returns the local time zone.

    To create new TimeZone instances, use one of the static instance-creation methods, NOT 'new TimeZone':

      Located in /harmoni/core/Primitives/Chronology/TimeZone.class.php (line 46)

      SObject
         |
         --TimeZone
      Method Summary
      object TimeZone TimeZone (object Duration $aDuration, string $aStringName, mixed $aStringAbbreviation, string $aStringAbbriviation)
      string abbreviation ()
      string name ()
      object TimeZone offsetNameAbbreviation (object Duration $aDuration, [string $aStringName = NULL], [mixed $aStringAbbreviation = NULL], string $aStringAbbriviation)
      array timeZones ()
      Methods
      Constructor TimeZone (line 167)

      Create a new Timezone.

      • since: 5/3/05
      • access: private
      object TimeZone TimeZone (object Duration $aDuration, string $aStringName, mixed $aStringAbbreviation, string $aStringAbbriviation)
      • object Duration $aDuration
      • string $aStringName
      • string $aStringAbbriviation
      abbreviation (line 195)

      Answer the abreviation

      • since: 5/10/05
      • access: public
      string abbreviation ()
      defaultTimeZone (line 62)

      Answer the default time zone - GMT

      • static:
      • since: 5/3/05
      • access: public
      object TimeZone defaultTimeZone ()
      name (line 206)

      Answer the name

      • since: 5/10/05
      • access: public
      string name ()
      offset (line 184)

      Return the offset of this TimeZone

      • since: 5/3/05
      • access: public
      object Duration offset ()
      offsetNameAbbreviation (line 80)

      Create a new Timezone.

      • since: 5/3/05
      • access: public
      object TimeZone offsetNameAbbreviation (object Duration $aDuration, [string $aStringName = NULL], [mixed $aStringAbbreviation = NULL], string $aStringAbbriviation)
      • object Duration $aDuration
      • string $aStringName
      • string $aStringAbbriviation
      timeZones (line 100)

      Return an Array of TimeZones

      • static:
      • since: 5/3/05
      • access: public
      array timeZones ()

      Inherited Methods

      Inherited From SObject

      SObject::asA()
      SObject::asString()
      SObject::copy()
      SObject::copySameFrom()
      SObject::copyTwoLevel()
      SObject::deepCopy()
      SObject::isEqual()
      SObject::isEqualTo()
      SObject::isNotEqualTo()
      SObject::isNotReferenceTo()
      SObject::isReferenceTo()
      SObject::newFrom()
      SObject::postCopy()
      SObject::printableString()
      SObject::shallowCopy()
      SObject::_deepCopyArray()

      Documentation generated on Wed, 19 Sep 2007 10:27:30 -0400 by phpDocumentor 1.3.0RC3