Beispiel #1
0
 public static string ToString(DateTimeOffset value, DateFormatHandling format)
 {
     using (StringWriter writer = Class198.smethod_6(0x40))
     {
         writer.Write('"');
         Class184.smethod_21(writer, value, format, null, CultureInfo.InvariantCulture);
         writer.Write('"');
         return(writer.ToString());
     }
 }
Beispiel #2
0
        public static string ToString(DateTime value, DateFormatHandling format, DateTimeZoneHandling timeZoneHandling)
        {
            DateTime time = Class184.smethod_2(value, timeZoneHandling);

            using (StringWriter writer = Class198.smethod_6(0x40))
            {
                writer.Write('"');
                Class184.smethod_16(writer, time, format, null, CultureInfo.InvariantCulture);
                writer.Write('"');
                return(writer.ToString());
            }
        }