fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. var leap = new DateTime(2019, 05, 03, 10, 09, 60);
  8.  
  9. Console.WriteLine(leap);
  10. }
  11. }
Runtime error #stdin #stdout #stderr 0s 134848KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Unhandled Exception:
System.ArgumentOutOfRangeException: Hour, Minute, and Second parameters describe an un-representable DateTime.
  at System.DateTime.TimeToTicks (System.Int32 hour, System.Int32 minute, System.Int32 second) [0x00041] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.DateTime..ctor (System.Int32 year, System.Int32 month, System.Int32 day, System.Int32 hour, System.Int32 minute, System.Int32 second) [0x00009] in <8f2c484307284b51944a1a13a14c0266>:0 
  at Test.Main () [0x00000] in <19ed1891a2fb442db99b67335d4b3ac5>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentOutOfRangeException: Hour, Minute, and Second parameters describe an un-representable DateTime.
  at System.DateTime.TimeToTicks (System.Int32 hour, System.Int32 minute, System.Int32 second) [0x00041] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.DateTime..ctor (System.Int32 year, System.Int32 month, System.Int32 day, System.Int32 hour, System.Int32 minute, System.Int32 second) [0x00009] in <8f2c484307284b51944a1a13a14c0266>:0 
  at Test.Main () [0x00000] in <19ed1891a2fb442db99b67335d4b3ac5>:0