Update of /cvsroot/mvp-xml/EXSLT/v1/src/Exslt
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5188/v1/src/Exslt
Modified Files:
ExsltDatesAndTimes.cs
Log Message:
Index: ExsltDatesAndTimes.cs
===================================================================
RCS file: /cvsroot/mvp-xml/EXSLT/v1/src/Exslt/ExsltDatesAndTimes.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- ExsltDatesAndTimes.cs 20 Jul 2005 20:15:47 -0000 1.2
+++ ExsltDatesAndTimes.cs 17 Nov 2005 08:47:06 -0000 1.3
@@ -11,2164 +11,2350 @@
namespace Mvp.Xml.Exslt
{
- /// <summary>
- /// This class implements the EXSLT functions in the http://exslt.org/dates-and-times namespace.
- /// </summary>
- public class ExsltDatesAndTimes
- {
- private CultureInfo ci = new CultureInfo("en-US");
+ /// <summary>
+ /// This class implements the EXSLT functions in the http://exslt.org/dates-and-times namespace.
[...4272 lines suppressed...]
- /// </summary>
- /// <param name="seconds"></param>
- /// <returns></returns>
- public string duration(double seconds)
- {
- return XmlConvert.ToString(new TimeSpan(0,0,(int)seconds));
- }
- }
+ /// <summary>
+ /// Implements the following function
+ /// string date:duration(number)
+ /// </summary>
+ /// <param name="seconds"></param>
+ /// <returns></returns>
+ public string duration(double seconds)
+ {
+ return XmlConvert.ToString(TimeSpan.FromSeconds(seconds));
+ }
+ }
}
|