Export (0) Print
Expand All

Time.getAsync method (JavaScript API for Office v1.1)

JavaScript API for Office v1.1

Begins an asynchronous request to get the start or end time. This method was introduced in version 1.1.

Last modified: June 26, 2014

Applicable Outlook modes

Compose

Available in requirement sets

Mailbox

Office.context.mailbox.item.[start,end].getAsync([options,] callback);

options

Any optional parameters or state data passed to the method. Optional.

callback

The method to call when the start or end time is returned.

The getAsync method begins an asynchronous request to get the start or end time of an appointment, which is returned to the method specified in the callback parameter. When the call completes, the method specified in the callback parameter is called with one parameter, asyncResult, which contains the time in Coordinated Universal Time (UTC) in the value property. You can convert the UTC time to the local client time by using the Mailbox.convertToLocalClientTime method.

You can use the optional options parameter to pass any state information to the callback function.

App types

Mail app

Supported clients

Outlook 2013 SP1, Outlook 2013 RT, Outlook Web App, and OWA for Devices

Library

Office.js

Namespace

Office

Show:
© 2014 Microsoft