/// <summary> /// Writes a SIF 1.x <SIF_Time> 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(); }
/// <summary> /// Writes a SIF 1.x <SIF_Time> 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(); }