예제 #1
0
 /// <summary>
 /// Writes a SIF 1.x &lt;SIF_Time&gt; element
 /// </summary>
 /// <param name="writer"></param>
 /// <param name="formatter"></param>
 /// <param name="elementName"></param>
 /// <param name="time"></param>
 public static void WriteSIFTime(
     XmlWriter writer,
     SifFormatter formatter,
     String elementName,
     DateTime time )
 {
     String xmlTime = formatter.ToTimeString( time );
     writer.WriteStartElement( elementName );
     writer.WriteAttributeString( "Zone", Sif1xFormatter.FormatTimeZone( time ) );
     writer.WriteValue( xmlTime );
     writer.WriteEndElement();
 }
예제 #2
0
        /// <summary>
        /// Writes a SIF 1.x &lt;SIF_Time&gt; element
        /// </summary>
        /// <param name="writer"></param>
        /// <param name="formatter"></param>
        /// <param name="elementName"></param>
        /// <param name="time"></param>
        public static void WriteSIFTime(
            XmlWriter writer,
            SifFormatter formatter,
            String elementName,
            DateTime time)
        {
            String xmlTime = formatter.ToTimeString(time);

            writer.WriteStartElement(elementName);
            writer.WriteAttributeString("Zone", Sif1xFormatter.FormatTimeZone(time));
            writer.WriteValue(xmlTime);
            writer.WriteEndElement();
        }