Office.MailboxEnums.RecurrenceTimeZone enum
Specifies the time zone applied to the recurrence.
Remarks
Applicable Outlook mode: Compose or Read
Examples
// 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)}`);
});
Fields
AfghanistanStandardTime = "Afghanistan Standard Time" | Afghanistan Standard Time |
AlaskanStandardTime = "Alaskan Standard Time" | Alaskan Standard Time |
AleutianStandardTime = "Aleutian Standard Time" | Aleutian Standard Time |
AltaiStandardTime = "Altai Standard Time" | Altai Standard Time |
ArabStandardTime = "Arab Standard Time" | Arab Standard Time |
ArabianStandardTime = "Arabian Standard Time" | Arabian Standard Time |
ArabicStandardTime = "Arabic Standard Time" | Arabic Standard Time |
ArgentinaStandardTime = "Argentina Standard Time" | Argentina Standard Time |
AstrakhanStandardTime = "Astrakhan Standard Time" | Astrakhan Standard Time |
AtlanticStandardTime = "Atlantic Standard Time" | Atlantic Standard Time |
AUSCentralStandardTime = "AUS Central Standard Time" | Australia Central Standard Time |
AusCentralW_StandardTime = "Aus Central W. Standard Time" | Australia Central West Standard Time |
AUSEasternStandardTime = "AUS Eastern Standard Time" | AUS Eastern Standard Time |
AzerbaijanStandardTime = "Azerbaijan Standard Time" | Azerbaijan Standard Time |
AzoresStandardTime = "Azores Standard Time" | Azores Standard Time |
BahiaStandardTime = "Bahia Standard Time" | Bahia Standard Time |
BangladeshStandardTime = "Bangladesh Standard Time" | Bangladesh Standard Time |
BelarusStandardTime = "Belarus Standard Time" | Belarus Standard Time |
BougainvilleStandardTime = "Bougainville Standard Time" | Bougainville Standard Time |
CanadaCentralStandardTime = "Canada Central Standard Time" | Canada Central Standard Time |
CapeVerdeStandardTime = "Cape Verde Standard Time" | Cape Verde Standard Time |
CaucasusStandardTime = "Caucasus Standard Time" | Caucasus Standard Time |
CenAustraliaStandardTime = "Cen. Australia Standard Time" | Central Australia Standard Time |
CentralAmericaStandardTime = "Central America Standard Time" | Central America Standard Time |
CentralAsiaStandardTime = "Central Asia Standard Time" | Central Asia Standard Time |
CentralBrazilianStandardTime = "Central Brazilian Standard Time" | Central Brazilian Standard Time |
CentralEuropeStandardTime = "Central Europe Standard Time" | Central Europe Standard Time |
CentralEuropeanStandardTime = "Central European Standard Time" | Central European Standard Time |
CentralPacificStandardTime = "Central Pacific Standard Time" | Central Pacific Standard Time |
CentralStandardTime = "Central Standard Time" | Central Standard Time |
CentralStandardTime_Mexico = "Central Standard Time (Mexico)" | Central Standard Time (Mexico) |
ChathamIslandsStandardTime = "Chatham Islands Standard Time" | Chatham Islands Standard Time |
ChinaStandardTime = "China Standard Time" | China Standard Time |
CubaStandardTime = "Cuba Standard Time" | Cuba Standard Time |
DatelineStandardTime = "Dateline Standard Time" | Dateline Standard Time |
E_AfricaStandardTime = "E. Africa Standard Time" | East Africa Standard Time |
E_AustraliaStandardTime = "E. Australia Standard Time" | East Australia Standard Time |
E_EuropeStandardTime = "E. Europe Standard Time" | East Europe Standard Time |
E_SouthAmericaStandardTime = "E. South America Standard Time" | East South America Standard Time |
EasterIslandStandardTime = "Easter Island Standard Time" | Easter Island Standard Time |
EasternStandardTime = "Eastern Standard Time" | Eastern Standard Time |
EasternStandardTime_Mexico = "Eastern Standard Time (Mexico)" | Eastern Standard Time (Mexico) |
EgyptStandardTime = "Egypt Standard Time" | Egypt Standard Time |
EkaterinburgStandardTime = "Ekaterinburg Standard Time" | Ekaterinburg Standard Time |
FijiStandardTime = "Fiji Standard Time" | Fiji Standard Time |
FLEStandardTime = "FLE Standard Time" | FLE Standard Time |
GeorgianStandardTime = "Georgian Standard Time" | Georgian Standard Time |
GMTStandardTime = "GMT Standard Time" | GMT Standard Time |
GreenlandStandardTime = "Greenland Standard Time" | Greenland Standard Time |
GreenwichStandardTime = "Greenwich Standard Time" | Greenwich Standard Time |
GTBStandardTime = "GTB Standard Time" | GTB Standard Time |
HaitiStandardTime = "Haiti Standard Time" | Haiti Standard Time |
HawaiianStandardTime = "Hawaiian Standard Time" | Hawaiian Standard Time |
IndiaStandardTime = "India Standard Time" | India Standard Time |
IranStandardTime = "Iran Standard Time" | Iran Standard Time |
IsraelStandardTime = "Israel Standard Time" | Israel Standard Time |
JordanStandardTime = "Jordan Standard Time" | Jordan Standard Time |
KaliningradStandardTime = "Kaliningrad Standard Time" | Kaliningrad Standard Time |
KamchatkaStandardTime = "Kamchatka Standard Time" | Kamchatka Standard Time |
KoreaStandardTime = "Korea Standard Time" | Korea Standard Time |
LibyaStandardTime = "Libya Standard Time" | Libya Standard Time |
LineIslandsStandardTime = "Line Islands Standard Time" | Line Islands Standard Time |
LordHoweStandardTime = "Lord Howe Standard Time" | Lord Howe Standard Time |
MagadanStandardTime = "Magadan Standard Time" | Magadan Standard Time |
MagallanesStandardTime = "Magallanes Standard Time" | Magallanes Standard Time |
MarquesasStandardTime = "Marquesas Standard Time" | Marquesas Standard Time |
MauritiusStandardTime = "Mauritius Standard Time" | Mauritius Standard Time |
MidAtlanticStandardTime = "Mid-Atlantic Standard Time" | Mid-Atlantic Standard Time |
MiddleEastStandardTime = "Middle East Standard Time" | Middle East Standard Time |
MontevideoStandardTime = "Montevideo Standard Time" | Montevideo Standard Time |
MoroccoStandardTime = "Morocco Standard Time" | Morocco Standard Time |
MountainStandardTime = "Mountain Standard Time" | Mountain Standard Time |
MountainStandardTime_Mexico = "Mountain Standard Time (Mexico)" | Mountain Standard Time (Mexico) |
MyanmarStandardTime = "Myanmar Standard Time" | Myanmar Standard Time |
N_CentralAsiaStandardTime = "N. Central Asia Standard Time" | North Central Asia Standard Time |
NamibiaStandardTime = "Namibia Standard Time" | Namibia Standard Time |
NepalStandardTime = "Nepal Standard Time" | Nepal Standard Time |
NewZealandStandardTime = "New Zealand Standard Time" | New Zealand Standard Time |
NewfoundlandStandardTime = "Newfoundland Standard Time" | Newfoundland Standard Time |
NorfolkStandardTime = "Norfolk Standard Time" | Norfolk Standard Time |
NorthAsiaEastStandardTime = "North Asia East Standard Time" | North Asia East Standard Time |
NorthAsiaStandardTime = "North Asia Standard Time" | North Asia Standard Time |
NorthKoreaStandardTime = "North Korea Standard Time" | North Korea Standard Time |
OmskStandardTime = "Omsk Standard Time" | Omsk Standard Time |
PacificSAStandardTime = "Pacific SA Standard Time" | Pacific SA Standard Time |
PacificStandardTime = "Pacific Standard Time" | Pacific Standard Time |
PacificStandardTimeMexico = "Pacific Standard Time (Mexico)" | Pacific Standard Time (Mexico) |
PakistanStandardTime = "Pakistan Standard Time" | Pakistan Standard Time |
ParaguayStandardTime = "Paraguay Standard Time" | Paraguay Standard Time |
RomanceStandardTime = "Romance Standard Time" | Romance Standard Time |
RussiaTimeZone10 = "Russia Time Zone 10" | Russia Time Zone 10 |
RussiaTimeZone11 = "Russia Time Zone 11" | Russia Time Zone 11 |
RussiaTimeZone3 = "Russia Time Zone 3" | Russia Time Zone 3 |
RussianStandardTime = "Russian Standard Time" | Russian Standard Time |
SAEasternStandardTime = "SA Eastern Standard Time" | SA Eastern Standard Time |
SAPacificStandardTime = "SA Pacific Standard Time" | SA Pacific Standard Time |
SAWesternStandardTime = "SA Western Standard Time" | SA Western Standard Time |
SaintPierreStandardTime = "Saint Pierre Standard Time" | Saint Pierre Standard Time |
SakhalinStandardTime = "Sakhalin Standard Time" | Sakhalin Standard Time |
SamoaStandardTime = "Samoa Standard Time" | Samoa Standard Time |
SaratovStandardTime = "Saratov Standard Time" | Saratov Standard Time |
SEAsiaStandardTime = "SE Asia Standard Time" | Southeast Asia Standard Time |
SingaporeStandardTime = "Singapore Standard Time" | Singapore Standard Time |
SouthAfricaStandardTime = "South Africa Standard Time" | South Africa Standard Time |
SriLankaStandardTime = "Sri Lanka Standard Time" | Sri Lanka Standard Time |
SudanStandardTime = "Sudan Standard Time" | Sudan Standard Time |
SyriaStandardTime = "Syria Standard Time" | Syria Standard Time |
TaipeiStandardTime = "Taipei Standard Time" | Taipei Standard Time |
TasmaniaStandardTime = "Tasmania Standard Time" | Tasmania Standard Time |
TocantinsStandardTime = "Tocantins Standard Time" | Tocantins Standard Time |
TokyoStandardTime = "Tokyo Standard Time" | Tokyo Standard Time |
TomskStandardTime = "Tomsk Standard Time" | Tomsk Standard Time |
TongaStandardTime = "Tonga Standard Time" | Tonga Standard Time |
TransbaikalStandardTime = "Transbaikal Standard Time" | Transbaikal Standard Time |
TurkeyStandardTime = "Turkey Standard Time" | Turkey Standard Time |
TurksAndCaicosStandardTime = "Turks And Caicos Standard Time" | Turks And Caicos Standard Time |
UlaanbaatarStandardTime = "Ulaanbaatar Standard Time" | Ulaanbaatar Standard Time |
USEasternStandardTime = "US Eastern Standard Time" | United States Eastern Standard Time |
USMountainStandardTime = "US Mountain Standard Time" | United States Mountain Standard Time |
UTC = "UTC" | Coordinated Universal Time (UTC) |
UTCPLUS12 = "UTC+12" | Coordinated Universal Time (UTC) + 12 hours |
UTCPLUS13 = "UTC+13" | Coordinated Universal Time (UTC) + 13 hours |
UTCMINUS02 = "UTC-02" | Coordinated Universal Time (UTC) - 2 hours |
UTCMINUS08 = "UTC-08" | Coordinated Universal Time (UTC) - 8 hours |
UTCMINUS09 = "UTC-09" | Coordinated Universal Time (UTC) - 9 hours |
UTCMINUS11 = "UTC-11" | Coordinated Universal Time (UTC) - 11 hours |
VenezuelaStandardTime = "Venezuela Standard Time" | Venezuela Standard Time |
VladivostokStandardTime = "Vladivostok Standard Time" | Vladivostok Standard Time |
W_AustraliaStandardTime = "W. Australia Standard Time" | West Australia Standard Time |
W_CentralAfricaStandardTime = "W. Central Africa Standard Time" | West Central Africa Standard Time |
W_EuropeStandardTime = "W. Europe Standard Time" | West Europe Standard Time |
W_MongoliaStandardTime = "W. Mongolia Standard Time" | West Mongolia Standard Time |
WestAsiaStandardTime = "West Asia Standard Time" | West Asia Standard Time |
WestBankStandardTime = "West Bank Standard Time" | West Bank Standard Time |
WestPacificStandardTime = "West Pacific Standard Time" | West Pacific Standard Time |
YakutskStandardTime = "Yakutsk Standard Time" | Yakutsk Standard Time |
Office Add-ins