dateFormat = $dateFormat; } /** * @return self::DATE_FORMAT_* */ public function getDateFormat() { return $this->dateFormat; } /** * Output only. Indicates how the DateElement is displayed in the document. * * @param string $displayText */ public function setDisplayText($displayText) { $this->displayText = $displayText; } /** * @return string */ public function getDisplayText() { return $this->displayText; } /** * The language code of the DateElement. For example, `en`. If unset, the * default locale is `en`. Limited to the following locales: `af`, `am`, `ar`, * `as`, `az`, `be`, `bg`, `bn`, `ca`, `cs`, `da`, `de`, `el`, `en`, `en-CA`, * `en-GB`, `es`, `es-419`, `et`, `eu`, `fa`, `fi`, `fil`, `fr`, `fr-CA`, * `gl`, `gu`, `hi`, `hr`, `hu`, `hy`, `id`, `is`, `it`, `iw`, `ja`, `ka`, * `kk`, `km`, `kn`, `ko`, `lo`, `lt`, `lv`, `mk`, `ml`, `mn`, `mr`, `ms`, * `ne`, `nl`, `no`, `or`, `pa`, `pl`, `pt-BR`, `pt-PT`, `ro`, `ru`, `si`, * `sk`, `sl`, `sq`, `sr`, `sv`, `sw`, `ta`, `te`, `th`, `tr`, `uk`, `ur`, * `uz`, `vi`, `zh-CN`, `zh-HK`, `zh-TW`, `zu`, `cy`, `my`. * * @param string $locale */ public function setLocale($locale) { $this->locale = $locale; } /** * @return string */ public function getLocale() { return $this->locale; } /** * Determines how the time part of the DateElement will be displayed in the * document. If unset, the default value is TIME_FORMAT_DISABLED, indicating * no time should be shown. * * Accepted values: TIME_FORMAT_UNSPECIFIED, TIME_FORMAT_DISABLED, * TIME_FORMAT_HOUR_MINUTE, TIME_FORMAT_HOUR_MINUTE_TIMEZONE * * @param self::TIME_FORMAT_* $timeFormat */ public function setTimeFormat($timeFormat) { $this->timeFormat = $timeFormat; } /** * @return self::TIME_FORMAT_* */ public function getTimeFormat() { return $this->timeFormat; } /** * The time zone of the DateElement, as defined by the Unicode Common Locale * Data Repository (CLDR) project. For example, `America/New_York`. If unset, * the default time zone is `etc/UTC`. * * @param string $timeZoneId */ public function setTimeZoneId($timeZoneId) { $this->timeZoneId = $timeZoneId; } /** * @return string */ public function getTimeZoneId() { return $this->timeZoneId; } /** * The point in time to represent, in seconds and nanoseconds since Unix * epoch: January 1, 1970 at midnight UTC. Timestamp is expected to be in UTC. * If time_zone_id is set, the timestamp is adjusted according to the time * zone. For example, a timestamp of `18000` with a date format of * `DATE_FORMAT_ISO8601` and time format of `TIME_FORMAT_HOUR_MINUTE` would be * displayed as `1970-01-01 5:00 AM`. A timestamp of `18000` with date format * of `DATE_FORMAT_ISO8601`, time format of `TIME_FORMAT_HOUR_MINUTE`, and * time zone set to `America/New_York` will instead be `1970-01-01 12:00 AM`. * * @param string $timestamp */ public function setTimestamp($timestamp) { $this->timestamp = $timestamp; } /** * @return string */ public function getTimestamp() { return $this->timestamp; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(DateElementProperties::class, 'Google_Service_Docs_DateElementProperties');