Compartir a través de


DateTimeUtil.applyTimeZoneOffset(utcdatetime, Timezone) Method

Definition

Retrieves a utcdatetime value that is offset from the specified utcdatetime value by the amount that is indicated by the specified Timezone enumeration value.

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

Parameters

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

A Timezone enumeration value that indicates the new offset to use.

_tz
Timezone

A Timezone enumeration value that indicates the new offset to use.

Returns

Microsoft.Dynamics.Ax.Xpp.AxShared.utcdatetime

A new utcdatetime value.

Applies to