Office.MailboxEnums.RecurrenceTimeZone enum

指定应用于定期的时区。

注解

[ API set: Mailbox 1.7 ]

适用的 Outlook 模式:撰写或阅读

示例

// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/outlook/50-recurrence/get-set-recurrence-appointment-organizer.yaml

// Important: Can only set the recurrence pattern of an appointment series.

const currentDate = new Date();
let seriesTimeObject: Office.SeriesTime;
// Set series start date to tomorrow.
seriesTimeObject.setStartDate(currentDate.getFullYear(), currentDate.getMonth(), currentDate.getDay() + 1);
// Set series end date to one year from now.
seriesTimeObject.setEndDate(currentDate.getFullYear() + 1, currentDate.getMonth() + 1, currentDate.getDay());
// Set start time to 1:30 PM.
seriesTimeObject.setStartTime(13, 30);
// Set duration to 30 minutes.
seriesTimeObject.setDuration(30);

const pattern: Office.Recurrence = {
  seriesTime: seriesTimeObject,
  recurrenceType: Office.MailboxEnums.RecurrenceType.Yearly,
  recurrenceProperties: {
    interval: 1,
    dayOfWeek: Office.MailboxEnums.Days.Tue,
    weekNumber: Office.MailboxEnums.WeekNumber.Second,
    month: Office.MailboxEnums.Month.Sep
  },
  recurrenceTimeZone: { name: Office.MailboxEnums.RecurrenceTimeZone.PacificStandardTime }
};

Office.context.mailbox.item.recurrence.setAsync(pattern, (asyncResult) => {
  if (asyncResult.status !== Office.AsyncResultStatus.Succeeded) {
    console.error(`Failed to set recurrence. Error: ${asyncResult.error.message}`);
    return;
  }
  console.log(`Succeeded in setting recurrence pattern ${JSON.stringify(pattern)}`);
});

字段

AfghanistanStandardTime = "Afghanistan Standard Time"

阿富汗标准时间

AlaskanStandardTime = "Alaskan Standard Time"

阿拉斯加标准时间

AleutianStandardTime = "Aleutian Standard Time"

阿留申标准时间

AltaiStandardTime = "Altai Standard Time"

阿尔泰标准时间

ArabStandardTime = "Arab Standard Time"

阿拉伯标准时间

ArabianStandardTime = "Arabian Standard Time"

阿拉伯标准时间

ArabicStandardTime = "Arabic Standard Time"

阿拉伯语标准时间

ArgentinaStandardTime = "Argentina Standard Time"

阿根廷标准时间

AstrakhanStandardTime = "Astrakhan Standard Time"

阿斯特拉罕标准时间

AtlanticStandardTime = "Atlantic Standard Time"

大西洋标准时间

AUSCentralStandardTime = "AUS Central Standard Time"

澳大利亚中部标准时间

AusCentralW_StandardTime = "Aus Central W. Standard Time"

澳大利亚中西部标准时间

AUSEasternStandardTime = "AUS Eastern Standard Time"

澳大利亚东部标准时间

AzerbaijanStandardTime = "Azerbaijan Standard Time"

阿塞拜疆标准时间

AzoresStandardTime = "Azores Standard Time"

亚速尔群岛标准时间

BahiaStandardTime = "Bahia Standard Time"

巴伊亚标准时间

BangladeshStandardTime = "Bangladesh Standard Time"

孟加拉国标准时间

BelarusStandardTime = "Belarus Standard Time"

白俄罗斯标准时间

BougainvilleStandardTime = "Bougainville Standard Time"

布干维尔标准时间

CanadaCentralStandardTime = "Canada Central Standard Time"

加拿大中部标准时间

CapeVerdeStandardTime = "Cape Verde Standard Time"

佛得角标准时间

CaucasusStandardTime = "Caucasus Standard Time"

高加索标准时间

CenAustraliaStandardTime = "Cen. Australia Standard Time"

中部澳大利亚标准时间

CentralAmericaStandardTime = "Central America Standard Time"

中美洲标准时间

CentralAsiaStandardTime = "Central Asia Standard Time"

中亚标准时间

CentralBrazilianStandardTime = "Central Brazilian Standard Time"

巴西中部标准时间

CentralEuropeStandardTime = "Central Europe Standard Time"

中欧标准时间

CentralEuropeanStandardTime = "Central European Standard Time"

中欧标准时间

CentralPacificStandardTime = "Central Pacific Standard Time"

中太平洋标准时间

CentralStandardTime = "Central Standard Time"

中部标准时间

CentralStandardTime_Mexico = "Central Standard Time (Mexico)"

中部标准时间 (墨西哥)

ChathamIslandsStandardTime = "Chatham Islands Standard Time"

查塔姆群岛标准时间

ChinaStandardTime = "China Standard Time"

中国标准时间

CubaStandardTime = "Cuba Standard Time"

古巴标准时间

DatelineStandardTime = "Dateline Standard Time"

日期线标准时间

E_AfricaStandardTime = "E. Africa Standard Time"

东非标准时间

E_AustraliaStandardTime = "E. Australia Standard Time"

东部澳大利亚标准时间

E_EuropeStandardTime = "E. Europe Standard Time"

东欧标准时间

E_SouthAmericaStandardTime = "E. South America Standard Time"

南美洲东部标准时间

EasterIslandStandardTime = "Easter Island Standard Time"

复活岛标准时间

EasternStandardTime = "Eastern Standard Time"

东部标准时间

EasternStandardTime_Mexico = "Eastern Standard Time (Mexico)"

墨西哥东部标准时间 ()

EgyptStandardTime = "Egypt Standard Time"

埃及标准时间

EkaterinburgStandardTime = "Ekaterinburg Standard Time"

叶卡捷琳堡标准时间

FijiStandardTime = "Fiji Standard Time"

斐济标准时间

FLEStandardTime = "FLE Standard Time"

FLE 标准时间

GeorgianStandardTime = "Georgian Standard Time"

格鲁吉亚标准时间

GMTStandardTime = "GMT Standard Time"

GMT 标准时间

GreenlandStandardTime = "Greenland Standard Time"

格陵兰标准时间

GreenwichStandardTime = "Greenwich Standard Time"

格林威治标准时间

GTBStandardTime = "GTB Standard Time"

GTB 标准时间

HaitiStandardTime = "Haiti Standard Time"

海地标准时间

HawaiianStandardTime = "Hawaiian Standard Time"

夏威夷标准时间

IndiaStandardTime = "India Standard Time"

印度标准时间

IranStandardTime = "Iran Standard Time"

伊朗标准时间

IsraelStandardTime = "Israel Standard Time"

以色列标准时间

JordanStandardTime = "Jordan Standard Time"

约旦标准时间

KaliningradStandardTime = "Kaliningrad Standard Time"

加里宁格勒标准时间

KamchatkaStandardTime = "Kamchatka Standard Time"

堪察加标准时间

KoreaStandardTime = "Korea Standard Time"

韩国标准时间

LibyaStandardTime = "Libya Standard Time"

利比亚标准时间

LineIslandsStandardTime = "Line Islands Standard Time"

Line Islands 标准时间

LordHoweStandardTime = "Lord Howe Standard Time"

豪勋爵标准时间

MagadanStandardTime = "Magadan Standard Time"

Magadan 标准时间

MagallanesStandardTime = "Magallanes Standard Time"

Magallanes 标准时间

MarquesasStandardTime = "Marquesas Standard Time"

Marquesas 标准时间

MauritiusStandardTime = "Mauritius Standard Time"

毛里求斯标准时间

MidAtlanticStandardTime = "Mid-Atlantic Standard Time"

Mid-Atlantic 标准时间

MiddleEastStandardTime = "Middle East Standard Time"

中东标准时间

MontevideoStandardTime = "Montevideo Standard Time"

蒙得维的亚标准时间

MoroccoStandardTime = "Morocco Standard Time"

摩洛哥标准时间

MountainStandardTime = "Mountain Standard Time"

山区标准时间

MountainStandardTime_Mexico = "Mountain Standard Time (Mexico)"

山区标准时间 (墨西哥)

MyanmarStandardTime = "Myanmar Standard Time"

缅甸标准时间

N_CentralAsiaStandardTime = "N. Central Asia Standard Time"

中北亚标准时间

NamibiaStandardTime = "Namibia Standard Time"

纳米比亚标准时间

NepalStandardTime = "Nepal Standard Time"

尼泊尔标准时间

NewZealandStandardTime = "New Zealand Standard Time"

新西兰标准时间

NewfoundlandStandardTime = "Newfoundland Standard Time"

纽芬兰标准时间

NorfolkStandardTime = "Norfolk Standard Time"

诺福克标准时间

NorthAsiaEastStandardTime = "North Asia East Standard Time"

东北亚东部标准时间

NorthAsiaStandardTime = "North Asia Standard Time"

北亚标准时间

NorthKoreaStandardTime = "North Korea Standard Time"

朝鲜标准时间

OmskStandardTime = "Omsk Standard Time"

Omsk 标准时间

PacificSAStandardTime = "Pacific SA Standard Time"

太平洋 SA 标准时间

PacificStandardTime = "Pacific Standard Time"

太平洋标准时间

PacificStandardTimeMexico = "Pacific Standard Time (Mexico)"

太平洋标准时间 (墨西哥)

PakistanStandardTime = "Pakistan Standard Time"

巴基斯坦标准时间

ParaguayStandardTime = "Paraguay Standard Time"

巴拉圭标准时间

RomanceStandardTime = "Romance Standard Time"

浪漫标准时间

RussiaTimeZone10 = "Russia Time Zone 10"

俄罗斯时区 10

RussiaTimeZone11 = "Russia Time Zone 11"

俄罗斯时区 11

RussiaTimeZone3 = "Russia Time Zone 3"

俄罗斯时区 3

RussianStandardTime = "Russian Standard Time"

俄罗斯标准时间

SAEasternStandardTime = "SA Eastern Standard Time"

SA 东部标准时间

SAPacificStandardTime = "SA Pacific Standard Time"

SA 太平洋标准时间

SAWesternStandardTime = "SA Western Standard Time"

SA 西部标准时间

SaintPierreStandardTime = "Saint Pierre Standard Time"

圣皮埃尔标准时间

SakhalinStandardTime = "Sakhalin Standard Time"

萨哈林标准时间

SamoaStandardTime = "Samoa Standard Time"

萨摩亚标准时间

SaratovStandardTime = "Saratov Standard Time"

萨拉托夫标准时间

SEAsiaStandardTime = "SE Asia Standard Time"

东南亚标准时间

SingaporeStandardTime = "Singapore Standard Time"

新加坡标准时间

SouthAfricaStandardTime = "South Africa Standard Time"

南非标准时间

SriLankaStandardTime = "Sri Lanka Standard Time"

斯里兰卡标准时间

SudanStandardTime = "Sudan Standard Time"

苏丹标准时间

SyriaStandardTime = "Syria Standard Time"

叙利亚标准时间

TaipeiStandardTime = "Taipei Standard Time"

台北标准时间

TasmaniaStandardTime = "Tasmania Standard Time"

塔斯马尼亚标准时间

TocantinsStandardTime = "Tocantins Standard Time"

Tocantins 标准时间

TokyoStandardTime = "Tokyo Standard Time"

东京标准时间

TomskStandardTime = "Tomsk Standard Time"

Tomsk 标准时间

TongaStandardTime = "Tonga Standard Time"

汤加标准时间

TransbaikalStandardTime = "Transbaikal Standard Time"

跨贝加尔标准时间

TurkeyStandardTime = "Turkey Standard Time"

土耳其标准时间

TurksAndCaicosStandardTime = "Turks And Caicos Standard Time"

特克斯和凯科斯标准时间

UlaanbaatarStandardTime = "Ulaanbaatar Standard Time"

乌兰巴托标准时间

USEasternStandardTime = "US Eastern Standard Time"

美国东部标准时间

USMountainStandardTime = "US Mountain Standard Time"

美国山区标准时间

UTC = "UTC"

协调世界时 (UTC)

UTCPLUS12 = "UTC+12"

协调世界时 (UTC) + 12 小时

UTCPLUS13 = "UTC+13"

协调世界时 (UTC) + 13 小时

UTCMINUS02 = "UTC-02"

协调世界时 (UTC) - 2 小时

UTCMINUS08 = "UTC-08"

协调世界时 (UTC) - 8 小时

UTCMINUS09 = "UTC-09"

协调世界时 (UTC) - 9 小时

UTCMINUS11 = "UTC-11"

协调世界时 (UTC) - 11 小时

VenezuelaStandardTime = "Venezuela Standard Time"

委内瑞拉标准时间

VladivostokStandardTime = "Vladivostok Standard Time"

海参崴标准时间

W_AustraliaStandardTime = "W. Australia Standard Time"

西部澳大利亚标准时间

W_CentralAfricaStandardTime = "W. Central Africa Standard Time"

中非西部标准时间

W_EuropeStandardTime = "W. Europe Standard Time"

西欧标准时间

W_MongoliaStandardTime = "W. Mongolia Standard Time"

西部蒙古标准时间

WestAsiaStandardTime = "West Asia Standard Time"

西亚标准时间

WestBankStandardTime = "West Bank Standard Time"

约旦河西岸标准时间

WestPacificStandardTime = "West Pacific Standard Time"

西太平洋标准时间

YakutskStandardTime = "Yakutsk Standard Time"

雅库茨克标准时间