c#中的Xml日期计算 [英] Xml Date Calculation in c#
本文介绍了c#中的Xml日期计算的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用C#代码评估以下表达式:
How to Evaluate below Expression using C# Code:
xs:date($refPeriodEndDate)-xs:dayTimeDuration('P14D')
i希望这个表达式的结果使用C#hw它在c#上的工作。
i want result of this Expression using C# hw its work on c#.
推荐答案
refPeriodEndDate)-xs:dayTimeDuration('P14D')
refPeriodEndDate)-xs:dayTimeDuration('P14D')
i希望这个表达式的结果使用C#hw它在c#上的工作。
i want result of this Expression using C# hw its work on c#.
你可以使用XPath来做,看看:http://www.w3.org/TR/xpath-functions/#dt-dayTimeDuration [ ^ ]
You can do it by using XPath, take a look: http://www.w3.org/TR/xpath-functions/#dt-dayTimeDuration[^]
10.3.2 xs:dayTimeDuration
[Definition] xs:dayTimeDuration is derived from xs:duration by restricting its lexical representation to contain only the days, hours, minutes and seconds components. The value space of xs:dayTimeDuration is the set of fractional second values. The components of xs:dayTimeDuration correspond to the day, hour, minute and second components defined in Section 5.5.3.2 of [ISO 8601], respectively.
这篇关于c#中的Xml日期计算的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文