DateTimeUtil.getTimeZoneOffset(utcdatetime, Timezone) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.