using System;
public class Test
{
public static void Main()
{
DateTime a = DateTime.Parse("2020/5/30 12:00:00 AM");
DateTime b = DateTime.Parse("2020/5/30 08:30:00 AM");
DateTime c = DateTime.Parse("2020/5/30 12:00:00 PM");
int result = DateTime.Compare(a, b);
Console.WriteLine(a);
Console.WriteLine(b);
Console.WriteLine(c);
Console.WriteLine(result);
result = DateTime.Compare(c, b);
Console.WriteLine(result);
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewoJCURhdGVUaW1lIGEgPSBEYXRlVGltZS5QYXJzZSgiMjAyMC81LzMwIDEyOjAwOjAwIEFNIik7CgkJRGF0ZVRpbWUgYiA9IERhdGVUaW1lLlBhcnNlKCIyMDIwLzUvMzAgMDg6MzA6MDAgQU0iKTsKCQlEYXRlVGltZSBjID0gRGF0ZVRpbWUuUGFyc2UoIjIwMjAvNS8zMCAxMjowMDowMCBQTSIpOwoJCQoJCWludCByZXN1bHQgPSBEYXRlVGltZS5Db21wYXJlKGEsIGIpOyAKCQkKCQlDb25zb2xlLldyaXRlTGluZShhKTsKCQlDb25zb2xlLldyaXRlTGluZShiKTsKCQlDb25zb2xlLldyaXRlTGluZShjKTsKCQlDb25zb2xlLldyaXRlTGluZShyZXN1bHQpOwoJCXJlc3VsdCA9IERhdGVUaW1lLkNvbXBhcmUoYywgYik7IAoJCUNvbnNvbGUuV3JpdGVMaW5lKHJlc3VsdCk7Cgl9Cn0=