110,535
社区成员
发帖
与我相关
我的任务
分享
[DllImport("kernel32.dll")]
public static extern int GetTimeZoneInformation(ref TIME_ZONE_INFORMATION lpTimeZoneInformation);
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
public struct TIME_ZONE_INFORMATION
{
public long Bias;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]
public string StandardName;
public SYSTEMTIME StandardDate;
public long StandardBias;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]
public string DaylightName;
SYSTEMTIME DaylightDate;
public long DaylightBias;
}
select getdate()