Compartir a través de


DateTimeUtil.getTimeZoneOffset(utcdatetime, Timezone) Method

Definition

Gets the offset of the specified utcdatetime value to UTC by using the information in a Timezone enumeration value.

public:
 static int getTimeZoneOffset(Microsoft::Dynamics::Ax::Xpp::AxShared::utcdatetime _t, Dynamics::AX::Application::Timezone _tz);
public static int getTimeZoneOffset (Microsoft.Dynamics.Ax.Xpp.AxShared.utcdatetime _t, Dynamics.AX.Application.Timezone _tz);
static member getTimeZoneOffset : Microsoft.Dynamics.Ax.Xpp.AxShared.utcdatetime * Dynamics.AX.Application.Timezone -> int
Public Shared Function getTimeZoneOffset (_t As utcdatetime, _tz As Timezone) As Integer

Parameters

_t
Microsoft.Dynamics.Ax.Xpp.AxShared.utcdatetime

A Timezone enumeration value that indicates the time zone of the t parameter.

_tz
Timezone

A Timezone enumeration value that indicates the time zone of the t parameter.

Returns

An integer that indicates the offset of the specified utcdatetime value to UTC.

Applies to