通过SOAP GMT PHP或UTC C#等价 [英] Gmt php or UTC C# equivalence through SOAP

查看:124
本文介绍了通过SOAP GMT PHP或UTC C#等价的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为C# DateTime.UtcNow 和php 日期(C)是等价的

is C# DateTime.UtcNow and php date("c") are equivalent

我对此表示怀疑,因为当我的肥皂无论我从

I doubt because when I soap both I get from

C#:

<dateDebutAction xsi:type="xsd:dateTime">2012-03-20T16:01:28.3954818Z</dateDebutAction>

和从
PHP的:

and from
PHP :

<dateDebutAction xsi:type="xsd:dateTime">2012-03-20T16:04:29+00:00</dateDebutAction>

如果他们是不等价的是什么是C#日期(C)

if they are not equivalent what is the C# for date("c")

背景:
我送的第一个肥皂谁在PHP中工作的人,和他说了我的日期是无效的,他给了我一个为例PHP中的日期(C)和它的工作。 所以我想如果我的code是错误的。

context :
I send the first soap to someone who work in PHP, and he's saying me the date is not valid, he gave me an exemple in php with date("c") and it work. So I wonder if my code is wrong.

我筛选与mssoapt SOAP请求和这两个要求是平等的,除了日期时间。

I filter the soap request with mssoapt and the two request are equals except the datetime.

推荐答案

以Z 表示祖鲁时间,这相当于 GMT + 00:00

Z means Zulu time, which is equivalent to GMT+00:00.

UTC时间有时用字母Z-的参考表示   等效海里时区(GMT),它已被记作为Z   距今约1950年。

The UTC time zone is sometimes denoted by the letter Z—a reference to the equivalent nautical time zone (GMT), which has been denoted by a Z since about 1950.

参考:维基百科&ndash的;时区

这篇关于通过SOAP GMT PHP或UTC C#等价的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆