Gmt php or UTC C# equivalence through SOAP

余生长醉 提交于 2019-12-10 23:38:46

问题


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>

and from
PHP :

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

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

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.

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


回答1:


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

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.

Reference: Wikipedia–Time zones



来源:https://stackoverflow.com/questions/9790825/gmt-php-or-utc-c-sharp-equivalence-through-soap

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!