Attachment 'datetime.xsl'
Download 1 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
2 xmlns:msxsl="urn:schemas-microsoft-com:xslt"
3 xmlns:wwdatetime="urn:WebWorks-Date-Time-Extension"
4 exclude-result-prefixes="xsl msxsl wwdatetime"
5 >
6 <msxsl:script language="C#" implements-prefix="wwdatetime">
7 <![CDATA[
8 public long TicksPerSecond() { return 10000000; }
9 public long TicksPerMinute() { return 600000000; }
10 public long TicksPerHour() { return 36000000000; }
11 public long TicksPerDay() { return 864000000000; }
12
13 public long NowAsTicks()
14 {
15 long result;
16
17 result = DateTime.Now.Ticks;
18
19 return result;
20 }
21
22 public string TicksAsRFC1123(long ticks)
23 {
24 string result;
25 DateTime dateTime;
26
27 dateTime = new DateTime(ticks);
28 result = String.Format("{0:r}", dateTime);
29
30 return result;
31 }
32 ]]>
33 </msxsl:script>
34 </xsl:stylesheet>
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.